Skip to content

Commit 1236e2f

Browse files
committed
1
1 parent bd53f04 commit 1236e2f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/content/docs/cmd/git-cmd.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ git stash pop
3434
```
3535

3636

37+
```
38+
# 撤销到合并前的提交,保留工作区更改
39+
# 不小心 merge 了,撤回。
40+
git reset --merge ORIG_HEAD
41+
```
42+
43+
3744
```
3845
# 回到上一个提交
3946
git reset --hard HEAD~1

0 commit comments

Comments
 (0)