# 退回方法:
# 情况一: 本地修改了,没add ,没commit
git checkout HEAD .
#
# 情况二:add了
git reset HEAD
#
# 情况三:commit后
git reset commit-id
#
# 情况四:push了
git revert commit-id 
git  push

# 查看提交历史commit-id
git log

 

相关文章:

  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-10-01
  • 2022-12-23
猜你喜欢
  • 2022-01-10
  • 2022-12-23
  • 2021-12-26
  • 2021-07-23
  • 2021-10-03
  • 2022-12-23
相关资源
相似解决方案