git stash

107 阅读1分钟
git stash save 'msg'  // 设置stash

git stash list  // 查看stash列表

git stash clear // 清除所有stash

git stash pop // 使用最近的一次stash

git stash pop stash@{0}  // 使用指定的stash

git stash drop stash@{0} // 删除指定的stash
git stash show 查看修改 默认的第一个

git stash show stash@{2} 查看指定修改

git stash show -p

git stash apply stash@{1} 应用某个存储,但不会把存储从存储列表中删除