$git stash popgit
进阶:
app
Git stash save "work in progress for foo feature"
this
当你屡次使用’git stash’命令后,你的栈里将充满了未提交的代码,这时候你会对将哪一个版本应用回来有些困惑,spa
’git stash list’ 命令能够将当前的Git栈信息打印出来,你只须要将找到对应的版本号,例如使用’git stash apply stash@{1}’就能够将你指定版本号为stash@{1}的工做取出来,当你将全部的栈都应用回来的时候,能够使用’git stash clear’来将栈清空。.net
git stash # save uncommitted changes # pull, edit, etc. git stash list # list stashed changes in this git git show stash@{0} # see the last stash git stash pop # apply last stash and remove it from the list git stash --help # for more info