зеркало из
https://github.com/iharh/notes.git
synced 2025-10-30 13:16:07 +02:00
24 строки
511 B
Plaintext
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 /*)
|