Skip to content

fix broken link #145

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Everyday Git in twenty commands or so](#everyday-git-in-twenty-commands-or-so)
* [Show helpful guides that come with Git](#show-helpful-guides-that-come-with-git)
* [Search change by content](#search-change-by-content)
* [Sync with remote - overwrite local changes](#sync-with-remote-overwrite-local-changes)
* [Sync with remote, overwrite local changes](#sync-with-remote-overwrite-local-changes)
* [List of all files till a commit](#list-of-all-files-till-a-commit)
* [Git reset first commit](#git-reset-first-commit)
* [List all the conflicted files](#list-all-the-conflicted-files)
Expand Down Expand Up @@ -185,7 +185,7 @@ git help -g
git log -S'<a term in the source>'
```

## Sync with remote - overwrite local changes
## Sync with remote, overwrite local changes
```sh
git fetch origin && git reset --hard origin/master && git clean -f -d
```
Expand Down Expand Up @@ -291,13 +291,7 @@ git tag -d <tag-name>

## Delete remote tag
```sh
git push origin :<remote_tagname>
```


__Alternatives:__
```sh
git push origin :refs/tags/<remote_tagname>
git push origin :refs/tags/<tag-name>
```

## Undo local changes with the last content in head
Expand Down
2 changes: 1 addition & 1 deletion tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"title": "Search change by content",
"tip": "git log -S'<a term in the source>'"
}, {
"title": "Sync with remote - overwrite local changes",
"title": "Sync with remote, overwrite local changes",
"tip": "git fetch origin && git reset --hard origin/master && git clean -f -d"
}, {
"title": "List of all files till a commit",
Expand Down