Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Remove untracked files from the working tree
- Step 1 is to show what will be deleted by using the -n option:
- git clean -n
- //Clean Step - beware: this will delete files:
- git clean -f
- //To remove directories, run git clean -f -d or git clean -fd
- //To remove ignored files, run git clean -f -X or git clean -fX
- //To remove ignored and non-ignored files, run git clean -f -x or git clean -fx
Add Comment
Please, Sign In to add comment