Add alternatives "Git reset first commit" (#111)

This commit is contained in:
Alex 2016-08-13 12:30:43 +03:00 committed by hemanth.hm
parent bfb1379951
commit d155ea094e
2 changed files with 8 additions and 1 deletions

View File

@ -168,6 +168,12 @@ git ls-tree --name-only -r <commit-ish>
git update-ref -d HEAD git update-ref -d HEAD
``` ```
__Alternatives:__
```sh
git reset --hard HEAD
```
## List all the conflicted files ## List all the conflicted files
```sh ```sh
git diff --name-only --diff-filter=U git diff --name-only --diff-filter=U

View File

@ -12,7 +12,8 @@
"tip": "git ls-tree --name-only -r <commit-ish>" "tip": "git ls-tree --name-only -r <commit-ish>"
}, { }, {
"title": "Git reset first commit", "title": "Git reset first commit",
"tip": "git update-ref -d HEAD" "tip": "git update-ref -d HEAD",
"alternatives": ["git reset --hard HEAD"]
}, { }, {
"title": "List all the conflicted files", "title": "List all the conflicted files",
"tip": "git diff --name-only --diff-filter=U" "tip": "git diff --name-only --diff-filter=U"