Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #stash #checkout #branch
ADD COMMENT
Topic
Name
5+9 =