Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 386 Bytes

git-clean.md

File metadata and controls

35 lines (23 loc) · 386 Bytes

git clean

dry-run

# dry-run
git clean -n

# force
git clean -f

selection

# recurse into subdirs
git clean -d

# *only* remove untracked gitignored files
git clean -X

# *also* remove untracked gitignored files
git clean -x

Examples

# remove all untracked files
# (force, remove directories, ignore .gitignore)
git clean -f -d -x