Is there any way to undo the effects of “git revert head”?

前端 未结 4 1534
萌比男神i
萌比男神i 2020-12-02 16:17

I\'ve accidentally run the command against the wrong branch in my repository - is there a way to undo this change?

4条回答
  •  春和景丽
    2020-12-02 17:12

    How about reverting the revert?

    View git log and get the hash tag of the bad revert:

    git log -5

    Then do reverse the revert itself:

    git revert

提交回复
热议问题