git checkout . #本地所有修改内的。没有的提交的,都返回到原来的状态

git stash #把所有没有提交的修容改暂存到stash里面。可用git stash pop回复。
git reset --hard HASH #返回到某个节点,不保留修改。
git reset --soft HASH #返回到某个节点。保留修改

相关文章:

  • 2021-06-17
  • 2021-09-24
  • 2022-02-11
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2021-10-17
相关资源
相似解决方案