Git stash

0

  • takes your uncommitted changes (both staged and unstaged), saves them away for later use, and then reverts them
git stash -u
git checkout master
git checkout crazy-experiment
git stash pop

stash with a message attached

git stash push -u -m "helpful message"

list your stashes

git stash list

pick a stash to pop

git stash pop stash@{2}

delete a stash

git stash drop stash@{1}

clear all your stashes

git stash clear

  • 0 posts
  • 1 subtopic
  • about 1 month ago by vince