Подтвердить что ты не робот

Git Применить и отменить

Есть ли команда git, которая применяет тайник и удаляет его?

Это как одна команда:

git stash apply
git stash drop
4b9b3361

Ответ 1

Вы хотите 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.

Ответ 2

git stash pop возьмет первый тайник в вашем списке (или тот, который вы укажете), примените его к вашему HEAD и удалите из списка.