git Tutorial
Git: Delete Untracked Files
By Xah Lee. Date:
2022-11-12
.
git clean -d -x -f
-d
→ Delete untracked dirs
-x
→ ignore the .gitignore file. Delete them.
-f
→ force it
git FAQ
Git: Undo Add File
Git: Undo Commit
Git: Fix Last Commit Message
Git: Revert to Old Version
Git: Config
Git: Setup Name and Email
Git: Ignore File
Git: Config Line-Ending for Windows
Git: Frequently Asked Questions
Git: Delete Untracked Files
Git: What's HEAD
Git: Fix Detached Head
git
Install
Install git
Git: Basics
Git: help
Create
Create a Project
Clone a Project
Commit
Add Files
Commit Files
Pull from Server
Push to Server
Manage
Commit ID
View History
Find Difference
Git Blame
Undo Add File
Undo Commit
Fix Last Commit Message
Revert to Old
Misc
Branching
Archive; Zip
Temp Save: git stash
git FAQ
Git: Config
Setup Name and Email
Git: Ignore File
Git: Config Line-Ending for Windows
git FAQ
Delete Untracked Files
What is HEAD
Fix Detached Head