Skip to content

Commit f9ec025

Browse files
committed
Fetch origin, not --all
1 parent 5d9a006 commit f9ec025

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ git help -g
179179

180180
## Overwrite pull
181181
```sh
182-
git fetch --all && git reset --hard origin/master
182+
git fetch origin && git reset --hard origin/master
183183
```
184184

185185
## List of all files till a commit

tips.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"tip": "git help -g"
77
}, {
88
"title": "Overwrite pull",
9-
"tip": "git fetch --all && git reset --hard origin/master"
9+
"tip": "git fetch origin && git reset --hard origin/master"
1010
}, {
1111
"title": "List of all files till a commit",
1212
"tip": "git ls-tree --name-only -r <commit-ish>"

0 commit comments

Comments
 (0)