Git stash - and patch

Stash

git stash list

# create or save stash
git stash 
# or
git stash push -m "description"

# Apply latest Stash stash@{0}
git stash apply 
# or
git stash apply [INDEX]

# Pop - Apply and Remove the latest stash: 
git stash pop

# Drop Stash: 
git stash drop [INDEX]

Stashes can’t be managed by name. A way to do so (like light solution for saving specific changes for specific build config), save pending changes to a file

# save your working copy changes to a local file
git diff > changes.save

# re-apply it later
git apply changes.save