From 5c7123704524f27346987b2cf9c419be6044c113 Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Tue, 3 Dec 2013 18:05:46 +0100 Subject: [PATCH] add gitclean alias Signed-off-by: Gaetan Semet --- plugins/git/git.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 1ec615b0f..28e4cffd3 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -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"