From 0a0cade736932fd16adcfbda4caf2545ffbcea1d Mon Sep 17 00:00:00 2001 From: Eliot Sykes Date: Fri, 18 Nov 2016 15:31:10 +0000 Subject: [PATCH 1/4] git-clean: add page --- pages/common/git-clean.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/git-clean.md diff --git a/pages/common/git-clean.md b/pages/common/git-clean.md new file mode 100644 index 00000000000000..f82bff83230f08 --- /dev/null +++ b/pages/common/git-clean.md @@ -0,0 +1,15 @@ +# git clean + +> Remove untracked files from the working tree. + +- Delete files that are not tracked by git: + +`git clean` + +- Interactively delete files that are not tracked by git: + +`git clean -i` + +- Shows what files would be deleted without actually deleting them: + +`git clean --dry-run` From 0bf05d6c5df5747d9410ca05a52282d9d5037055 Mon Sep 17 00:00:00 2001 From: Eliot Sykes Date: Fri, 23 Dec 2016 09:30:14 +0000 Subject: [PATCH 2/4] 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 f82bff83230f08..a90289b3430a2a 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` From ca22b5b2436403cdedadcb714255073c70fe6cd6 Mon Sep 17 00:00:00 2001 From: Eliot Sykes Date: Sat, 4 Feb 2017 10:37:09 +0000 Subject: [PATCH 3/4] Typo fix. Simplify git exclude path. --- pages/common/git-clean.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/git-clean.md b/pages/common/git-clean.md index a90289b3430a2a..42a246bef96854 100644 --- a/pages/common/git-clean.md +++ b/pages/common/git-clean.md @@ -14,10 +14,10 @@ `git clean --dry-run` -- Force delete files that are not tracked by git: +- Forcefully delete files that are not tracked by git: `git clean -f` -- Delete untracked files, including ignored files in `.gitignore` and `$GIT_DIR/info/exclude`: +- Delete untracked files, including ignored files in `.gitignore` and `.git/info/exclude`: `git clean -x` From 1a93279fbd398bcdac4338d5b31553b26af6bf93 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Mon, 17 Apr 2017 17:54:29 +0100 Subject: [PATCH 4/4] git-clean: fix verb tense --- pages/common/git-clean.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/git-clean.md b/pages/common/git-clean.md index 42a246bef96854..79bc0a535c6b30 100644 --- a/pages/common/git-clean.md +++ b/pages/common/git-clean.md @@ -10,7 +10,7 @@ `git clean -i` -- Shows what files would be deleted without actually deleting them: +- Show what files would be deleted without actually deleting them: `git clean --dry-run`