- list branches,
git branch
. *
will appear next to the active branch
- Dry run,
git clean -n
- Remove files,
git clean -f
- Remove directories,
git clean -fd
- Remove ignored files,
git clean -fX
- Remove ignored and non-ignored files,
git clean -fx
- Save local changes,
git stash
- Resume local changes,
git stash pop
- Revert un-committed merge
git merge --abort