What are the mechanics of git-revert command

后端 未结 1 1752
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-20 08:50

How does git-revert work? Does it make a patch or list of patches (only in reverse) which it then applies, or does it simply copy paths from the old commit into the new comm

相关标签:
1条回答
  • 2020-12-20 09:19

    It makes new commits, the effect of which is to undo the previous commit. Basically it makes an opposite patch of the patch in the commit you're reverting it, and commits that patch as a new commit.

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