Suppose that I have stashed some changes and I want to add further changes into the same stash (such as stash@{0}). Is there an easy way to do this? What about combining two stashes into a single one?
Suppose that I have stashed some changes and I want to add further changes
Share
I don’t see any “
git stash” option allowing to modify an existing git stash.A possible way to achieve this would be:
stash@{1})stash@{2})tmpbranch from the commit (HEAD) your are currently modifyinggit stash poptwicegit stash, creating a newstash@{1}with both content in it,git stash poponce (to restore all the pending changes)Five years later, Powerslave proposes in the comments: