Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

apply stash git

# git stash apply takes a stashed change and applies it to your current working
# tree (also leaving it on the “stash stack”). git stash branch creates a new
# branch from the same commit you were on when you stashed the changes,
# and applies the stashed changes to that new branch.
USAGE:
git checkout stash@{index} -- <filename> #stash particular file
e.g. git stash apply stash@{0} #applys whole of most recent stash
 
PREVIOUS NEXT
Tagged: #apply #stash #git
ADD COMMENT
Topic
Name
4+2 =