有没有一个 git 命令既应用存储(stash)又将其删除?
将其合并成一个命令:
git stash apply
git stash drop
有没有一个 git 命令既应用存储(stash)又将其删除?
将其合并成一个命令:
git stash apply
git stash drop
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.
git stash pop
会取出你列表中的第一个储藏(或你指定的),将其应用到你的HEAD
上,并将其从储藏列表中删除。
stash@{1}
这样特定的存储,而且仍然不想为此执行2个命令apply
和drop
,该怎么办? - Vicky Dev
stash@{1}
这样特定的存储,而且仍然不想为此执行两个命令apply
和drop
,该怎么办呢? - Vicky Devstash@{1}
这样git stash pop
特定的储藏,并且仍然不想要执行两个命令apply
和drop
,该怎么办呢? - undefined