Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Git Stash

git stash push -m "my_stash_name"

git stash list

git stash pop stash@{n}  //for nth stash 

git stash pop stash^{/my_stash_name} #for stash name

git stash apply stash@{n} // apply to only apply and not remove stashex.(ex. pop removes stash)

git stash apply stash^{/my_stash_name}
                       
git stash drop 
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #Git #Stash
ADD COMMENT
Topic
Name
5+8 =