- List what would be deleted
git clean -n -dNothing is deleted yet. Check the list carefully.
- Delete the untracked files and folders
git clean -f -dDeleted files do not go to the Bin. Files listed in .gitignore are left alone.
Check it worked
- Check the folder is clean
git statusIt should say nothing to commit, working tree clean.
- List what would be deleted
git clean -n -dNothing is deleted yet. Check the list carefully.
- Delete the untracked files and folders
git clean -f -dDeleted files do not go to the Bin. Files listed in .gitignore are left alone.
Check it worked
- Check the folder is clean
git statusIt should say nothing to commit, working tree clean.
- List what would be deleted
git clean -n -dNothing is deleted yet. Check the list carefully.
- Delete the untracked files and folders
git clean -f -dDeleted files do not go to the Bin. Files listed in .gitignore are left alone.
Check it worked
- Check the folder is clean
git statusIt should say nothing to commit, working tree clean.