the wiki of cscosine
This workflow lets you commit only selected changes while temporarily stashing everything else.
git add -p
# interactive!
or do it in manually your IDE
git stash push --keep-index --include-untracked
git commit -m "your partial commit message"
git stash pop