Home  >  Q&A  >  body text

github - git远端代码回滚

git 上在本地回滚了,但是只要一执行git pull 就又回来了

直接git push 又报错。

伊谢尔伦伊谢尔伦2727 days ago483

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-02 09:42:12

    The easiest way is to create a branch and merge the corrected bugs, and that's it.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:42:12

    1.git revert (recommended)
    2.git push -f after git reset (not recommended, does not respect historical records)

    reply
    0
  • Cancelreply