From 79d490334c6c46338b94c9d96d0b299afc816e2d Mon Sep 17 00:00:00 2001 From: Amir Nissim Date: Tue, 16 Jun 2015 10:44:09 +0300 Subject: [PATCH] Update `git clean` alias to clean directories as well add -d flag to `gwC` --- modules/git/README.md | 2 +- modules/git/alias.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git/README.md b/modules/git/README.md index c2d0449c..fcc5cbe7 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -203,7 +203,7 @@ Aliases index nor the working tree. - `gwR` resets the current HEAD, index and working tree to the specified state. - `gwc` removes untracked files from the working tree (dry-run). - - `gwC` removes untracked files from the working tree. + - `gwC` removes untracked files and directories from the working tree. - `gwx` removes files from the working tree and from the index recursively. - `gwX` removes files from the working tree and from the index recursively and forcefully. diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index ffa854dd..6c8d06b8 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -176,6 +176,6 @@ alias gwD='git diff --no-ext-diff --word-diff' alias gwr='git reset --soft' alias gwR='git reset --hard' alias gwc='git clean -n' -alias gwC='git clean -f' +alias gwC='git clean -df' alias gwx='git rm -r' alias gwX='git rm -rf'