Answers for "acess git stashed changes after returning to the branch"

0

retrieve git stash

git stash save "optional message for yourself"
git stash list
git stash show -p stash@{0}
git stash apply stash@{0}
git stash drop STASH-NAME
git stash clear
Posted by: Guest on May-07-2021
0

stash changes before checkout from the branch

# Assuming you are on dev branch
$ git stash save "Code in dev branch to be included in feature branch"
$ git checkout feature
$ git stash pop
Posted by: Guest on May-11-2021

Code answers related to "acess git stashed changes after returning to the branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language