sh git stash

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh git stash相关的知识,希望对你有一定的参考价值。

# push a new stash onto your stack
git stash

# view which stashes are stored
git stash list

# reapply the most recently pushed stash
git stash apply

# reapply a different stash (from the stash list)
git stash apply stash@{2}

# reapply a stash with staged changes
git stash apply --index

# drop stashes from the stash list
git stash drop stash@{0}

# reapply a stash and drop it from the stash list simultaneously
git stash pop

# view files and diffs in a stash
git stash show -p
git stash show -p stash@{1}

以上是关于sh git stash的主要内容,如果未能解决你的问题,请参考以下文章

sh Git Stash

sh git stash - 没有保存但未跟踪文件的本地更改

sh 来自http://dev.housetrip.com/2013/05/13/git-stashing/

sh 来自http://dev.housetrip.com/2013/05/13/git-stashing/

sh Git ReadyFrom http://gitready.com/beginner/2009/03/13/smartly-save-stashes.html

sh Git ReadyFrom http://gitready.com/beginner/2009/03/13/smartly-save-stashes.html