Git revert merge to specific parent

后端 未结 1 1561
囚心锁ツ
囚心锁ツ 2021-02-02 09:38

I have a git repo and am having trouble reverting a merge. The current hash is 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3. and it has two parents:

df1acf5f54426d30         


        
相关标签:
1条回答
  • 2021-02-02 10:20
    git revert -m 2 0ce2ca0b35f59af267241cf4d40d16a3e13ba6f3
    

    Parents are numbered starting with 1; you want the second one.

    0 讨论(0)
提交回复
热议问题