有没有一个git命令既可以应用stash又可以删除它?
这是一个命令:
git stash apply
git stash drop
发布于 2013-02-09 01:54:31
你想要git stash pop
!
pop [--index] [-q|--quiet] [<stash>]
Remove a single stashed state from the stash list and apply it on
top of the current working tree state, i.e., do the inverse
operation of git stash save. The working directory must match the
index.
发布于 2013-02-09 01:54:21
git stash pop
将获取列表(或您指定的列表)中的第一个stash,将其应用于您的HEAD
,并将其从stash列表中删除。
https://stackoverflow.com/questions/14778460
复制相似问题