Stash current changes git > Stash > Stash (Include Untracked) Create stash as patch git stash show "stash@{0}" -p > changes.patch Apply patch git apply changes.patch
git config stash.showIncludeUntracked true
https://git-scm.com/docs/git-stash#_configuration