From 100320e3a6698108b036095489a58e7bff16af44 Mon Sep 17 00:00:00 2001 From: Eliot Sykes Date: Fri, 23 Dec 2016 09:30:14 +0000 Subject: [PATCH] Add git clean -f, -x options --- pages/common/git-clean.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/git-clean.md b/pages/common/git-clean.md index f82bff832..a90289b34 100644 --- a/pages/common/git-clean.md +++ b/pages/common/git-clean.md @@ -13,3 +13,11 @@ - Shows what files would be deleted without actually deleting them: `git clean --dry-run` + +- Force delete files that are not tracked by git: + +`git clean -f` + +- Delete untracked files, including ignored files in `.gitignore` and `$GIT_DIR/info/exclude`: + +`git clean -x`