Stashes changes without name
git stash
Stashes changes with name
worked on add function
git stash save "worked on add function"
Shows all the stashes with unique IDs
git stash list
Takes stashed changes back (does not delete the stash after applying)
git stash apply stash@{0}
Applies the most recent stash & deletes the stash
git stash pop
Drops the specified stash
git stash drop stash@{0}
Deletes all stashes
git stash clear
by Valeri Tandilashvili
4 years ago
Git
Git Tutorials
1
Pro tip: use ```triple backticks around text``` to write in code fences