Git 2 · Undoing changes

Preview untracked files to delete

Show which untracked files and folders git clean would remove.

git clean -nd

Official Git 2 documentation

More undoing changes commands

All undoing changes commands · Git 2 cheatsheet

Was this page helpful?