Undo a Git commit after push using reverse patch?

后端 未结 3 1613
广开言路
广开言路 2020-12-12 16:54

I\'ve pushed a commit and I want to revert changes introduced by this commit by applying and committing a reversed patch. How do I do it?

3条回答
  •  既然无缘
    2020-12-12 17:31

    Sounds like you want to use git-revert.

    https://www.kernel.org/pub/software/scm/git/docs/git-revert.html

提交回复
热议问题