1
0
mirror of https://github.com/namibia/tips.git synced 2024-11-14 09:14:06 +00:00

Fetch origin, not --all

This commit is contained in:
Sina Siadat 2017-02-24 14:19:12 +03:30
parent 5d9a006ef9
commit f9ec0251aa
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ git help -g
## Overwrite pull
```sh
git fetch --all && git reset --hard origin/master
git fetch origin && git reset --hard origin/master
```
## List of all files till a commit

View File

@ -6,7 +6,7 @@
"tip": "git help -g"
}, {
"title": "Overwrite pull",
"tip": "git fetch --all && git reset --hard origin/master"
"tip": "git fetch origin && git reset --hard origin/master"
}, {
"title": "List of all files till a commit",
"tip": "git ls-tree --name-only -r <commit-ish>"