【发布时间】:2019-08-29 21:09:07
【问题描述】:
切换分支后,我应用了 stash(如下所示),这导致了自动合并。
git stash apply
Auto-merging src/clojure/project_src.clj
On branch upgrade_project
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: src/clojure/project_src.clj
no changes added to commit (use "git add" and/or "git commit -a")
我尝试了git revert HEAD,它恢复了提交(不是自动合并)。如何恢复自动合并?
【问题讨论】:
标签: git git-merge git-stash git-revert