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 merge my_dev_branch
git merge my_dev_branch
但是,我遇到了一个看起来很难解决的合并冲突,这让我觉得我不清楚我的分支历史。我不想解决冲突,而是想放弃合并并回到以前的位置。
两个问题:
git checkout HEAD <filename>
试试git merge --abort。好用,嗯?
git merge --abort