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:
parent
5d9a006ef9
commit
f9ec0251aa
@ -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
|
||||
|
@ -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>"
|
||||
|
Loading…
Reference in New Issue
Block a user