1
0
Fork 0

Update `git clean` alias to clean directories as well

add -d flag to `gwC`
pull/905/head
Amir Nissim 10 years ago
parent 08676a273e
commit 79d490334c

@ -203,7 +203,7 @@ Aliases
index nor the working tree. index nor the working tree.
- `gwR` resets the current HEAD, index and working tree to the specified state. - `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 (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.
- `gwX` removes files from the working tree and from the index recursively and - `gwX` removes files from the working tree and from the index recursively and
forcefully. forcefully.

@ -176,6 +176,6 @@ alias gwD='git diff --no-ext-diff --word-diff'
alias gwr='git reset --soft' alias gwr='git reset --soft'
alias gwR='git reset --hard' alias gwR='git reset --hard'
alias gwc='git clean -n' alias gwc='git clean -n'
alias gwC='git clean -f' alias gwC='git clean -df'
alias gwx='git rm -r' alias gwx='git rm -r'
alias gwX='git rm -rf' alias gwX='git rm -rf'

Loading…
Cancel
Save