So I make changes in 'branch - A', and pushed that branch remotely. Now I checkout a new 'branch - B' and begin work on it. But, now I need to work on branch-A again.
This is what i plan to do:
While my current branch is B I will do: git stash.
git checkout branch-A
After I am done working on branch A, I would do git stash ( to save changes of branch-A).
Now here is my question, If I need to work on branch-B again, how should i do git stash pop ?
I dont want A's
stash to be applied on branch B ?
You can see the
stash list
(follow stack).git stash apply
default tostash@{0}
. If you want another previous stash then, just mentionstash@<number>
.