Git 随笔集

41 阅读1分钟

Git stash 相关命令

git stash         暂存状态
git stash list    查看暂存列表
git stash clear   清空暂存列表
git stash drop stash@{0} 删除第一个暂存

git stash save "说明"    暂存未提交工作区
git stash pop           恢复最近一个暂存
git stash apply 
git stash apply         将缓存堆栈中的stash多次应用到工作目录中,但并不删除stash拷贝
git stash apply stash@{0}  指定使用哪一个stash