notes/util/vcs/git/git-clean.txt
Ihar Hancharenka 5dff80e88e first
2023-03-27 16:52:17 +03:00

24 строки
511 B
Plaintext

git clean [optional path]
delete untracked and ignored files
-h
help for the clean commands
-n, --dry-run
for safe preview
-d
for delete directories
-f, --force
to force deletion
-x
delete files even if they are in .gitignore
-X
remove ignored files only
-e, --exclude <pattern>
exclude pattern
-ndx
combine options
tip:
remove the end slash at .gitignore ad end the dirs with /-only (instead of /*)