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 git
Git Basics
git help
Create a Project
Clone a Project
Add Files
Commit Files
Pull from Server
Push to Server
Commit ID
Find Difference
View Log
Git Blame
Branching
Archive; Zip
Temp Save: git stash
git FAQ
Undo Add File
Undo Commit
Fix Last Commit Message
Revert to Old
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