Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
git pull作为 aa命令的结果,我使用该命令对许多冲突文件进行了一些更改git mergetool,但我想将其恢复到使用 mergetool 进行更改之前的状态。
git pull
git mergetool
它基本上是 git 警告存在冲突并列出它们的状态。为此需要什么命令?
我不确定是否真的有一种方法可以“模拟”合并并查看其冲突。但是,您当然可以运行合并、查看冲突并立即使用以下命令撤消它:
git reset --merge
对于 v1.7.4 及更高版本,您还可以使用:
git merge --abort