File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
14
14
* [ Everyday Git in twenty commands or so] ( #everyday-git-in-twenty-commands-or-so )
15
15
* [ Show helpful guides that come with Git] ( #show-helpful-guides-that-come-with-git )
16
16
* [ Search change by content] ( #search-change-by-content )
17
- * [ Sync with remote - overwrite local changes] ( #sync-with-remote-overwrite-local-changes )
17
+ * [ Sync with remote, overwrite local changes] ( #sync-with-remote-overwrite-local-changes )
18
18
* [ List of all files till a commit] ( #list-of-all-files-till-a-commit )
19
19
* [ Git reset first commit] ( #git-reset-first-commit )
20
20
* [ List all the conflicted files] ( #list-all-the-conflicted-files )
@@ -185,7 +185,7 @@ git help -g
185
185
git log -S' <a term in the source>'
186
186
```
187
187
188
- ## Sync with remote - overwrite local changes
188
+ ## Sync with remote, overwrite local changes
189
189
``` sh
190
190
git fetch origin && git reset --hard origin/master && git clean -f -d
191
191
```
@@ -291,13 +291,7 @@ git tag -d <tag-name>
291
291
292
292
## Delete remote tag
293
293
``` sh
294
- git push origin :< remote_tagname>
295
- ```
296
-
297
-
298
- __ Alternatives:__
299
- ``` sh
300
- git push origin :refs/tags/< remote_tagname>
294
+ git push origin :refs/tags/< tag-name>
301
295
```
302
296
303
297
## Undo local changes with the last content in head
Original file line number Diff line number Diff line change 8
8
"title" : " Search change by content" ,
9
9
"tip" : " git log -S'<a term in the source>'"
10
10
}, {
11
- "title" : " Sync with remote - overwrite local changes" ,
11
+ "title" : " Sync with remote, overwrite local changes" ,
12
12
"tip" : " git fetch origin && git reset --hard origin/master && git clean -f -d"
13
13
}, {
14
14
"title" : " List of all files till a commit" ,
You can’t perform that action at this time.
0 commit comments