Friday, July 8, 2016

Git : stashing, unstashing

If the local repo is in a state I don't want to commit, and I need to switch branch or do some other work, I can use the stash command to take my current state and save it on a stack of unfinished changes to reapply later.

$git stash
$git stash list