mirror of
https://github.com/namibia/tips.git
synced 2024-12-23 10:38:58 +00:00
Add alternatives "Git reset first commit" (#111)
This commit is contained in:
parent
bfb1379951
commit
d155ea094e
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user