Skip to content

Commit d155ea0

Browse files
lav45hemanth
authored andcommitted
Add alternatives "Git reset first commit" (#111)
1 parent bfb1379 commit d155ea0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ git ls-tree --name-only -r <commit-ish>
168168
git update-ref -d HEAD
169169
```
170170

171+
172+
__Alternatives:__
173+
```sh
174+
git reset --hard HEAD
175+
```
176+
171177
## List all the conflicted files
172178
```sh
173179
git diff --name-only --diff-filter=U

tips.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"tip": "git ls-tree --name-only -r <commit-ish>"
1313
}, {
1414
"title": "Git reset first commit",
15-
"tip": "git update-ref -d HEAD"
15+
"tip": "git update-ref -d HEAD",
16+
"alternatives": ["git reset --hard HEAD"]
1617
}, {
1718
"title": "List all the conflicted files",
1819
"tip": "git diff --name-only --diff-filter=U"

0 commit comments

Comments
 (0)