add gitclean alias

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
Gaetan Semet 2013-12-03 18:05:46 +01:00
commit 5c71237045

View file

@ -170,6 +170,9 @@ alias gitk-entier-history='gitk --all $(git log -g --pretty=format:%h)'
compdef _git gitk='gitk'
# Note: if the commit has been cleaned my 'git gc', the dangling commits older than 2 weeks may have been deleted
# Clean
# Remove all .orig, .BASE.*, .REMOTE.*, .LOCAL.* files
alias gclean='find . -name "*.orig" -or -name "*.REMOTE.*" -or -name "*.LOCAL.*" -or -name "*.BASE.*" -delete'
# Edit global Git configuration files
alias gitconfig="vim ~/.gitconfig"