1git stash save "my_stash"
2// Where "my_stash" is the stash name.
3
4// Some more useful things to know: All the stashes are stored in a stack. Type:
5git stash list
6// This will list down all your stashes.
7
8// To apply a stash and remove it from the stash stack, type:
9git stash pop stash@{n}
1# save your working copy changes
2git diff > some.patch
3
4# re-apply it later
5git apply some.patch