Skip to content

Instantly share code, notes, and snippets.

View thomschlereth's full-sized avatar

Thom Schlereth thomschlereth

View GitHub Profile
git stash - allows you to switch branches without having to commit half done work. It doesn't delete it it just temporarily "stashes" the code away.
git stash list- show you a list of all the code that's been stashed
git stash apply - allows you to retrieve the previously stashed code. apply defaults to the latest stashed code, but you can specify the name of the stash you want to reapply. like so:
```
git stash apply stash@{2}
```