Clean untracked files
Remove untracked files and directories from working tree
git clean -fd
- tool
- git45 commands
- tags
- gitcleanworking-tree
More git commands
-
git branch --merged mainList local branches already merged into main
-
git rebase -i HEAD~5Squash, reorder, or edit the last 5 commits
-
git cherry-pick <sha>Apply a single commit from another branch
-
git reflog show --date=relative | head -20Show recent HEAD movements including rebases and resets
-
git stash push -m 'WIP: feature-x' -uSave uncommitted work (including untracked files) with a label