How can I fix a reverted git commit?

后端 未结 4 1972
半阙折子戏
半阙折子戏 2021-02-03 18:19

I\'ve committed a bunch of changes to a repository, and they were reverted by someone else (they compile on windows but not on linux). I think that the changes are still in the

4条回答
  •  自闭症患者
    2021-02-03 18:44

    You can try reverting the reverts, using git revert. You can also restore the files from your commit using git checkout. Or you can use git cherry-pick -n to re-apply them and change them. You can create a new branch from your commit where you apply the changes using git branch. The possibilities are (almost) endless. :)

提交回复
热议问题