查看保存的进度

git stash list

恢复进度

git stash pop

 

测试运行哪些文件会被删除

git clean -nd

强制删除 

git clean -fd

 保存当前的工作进度,会保存暂存区和工作区的状态

git stash

查看保存进度列表,暗示了git stash可以多次保存进度,在恢复时进行选择

git stash list

恢复最新的进度

git stash pop

选择性恢复提供<stash>参数 则从该参数列表中剔除此<stash>

git stash [--index] [<stash>] 

除了不删除进度外和上面一样

git stash apply [--index] [<stash>] 

删除一个存储的进度

git stash drop <stash>

删除所有进度

git stash clear

没有被版本系统跟踪的文件进度不能被保存

相关文章:

  • 2021-08-10
  • 2021-10-26
  • 2021-05-14
  • 2021-06-13
  • 2021-06-06
猜你喜欢
  • 2021-12-04
  • 2021-10-31
  • 2021-09-06
  • 2021-07-08
  • 2022-12-23
  • 2021-08-17
  • 2021-11-18
相关资源
相似解决方案