git学习笔记5

查看保存的进度

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

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

原文地址:https://www.cnblogs.com/or2-/p/3446654.html