From 4ca1f0fd8b9d84ed5e06f1c852a54984c5db7ecb Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Wed, 12 Jun 2013 15:46:41 +0200 Subject: [PATCH] New aliases for git Signed-off-by: Gaetan Semet --- dot_files/gitconfig | 3 +++ plugins/git/git.plugin.zsh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/dot_files/gitconfig b/dot_files/gitconfig index a0ea5062a..7d70e47d9 100644 --- a/dot_files/gitconfig +++ b/dot_files/gitconfig @@ -24,6 +24,9 @@ rewrite-history8 = rebase -i HEAD~8 rewrite-history9 = rebase -i HEAD~9 rewrite-history10 = rebase -i HEAD~10 + tags = tag -l + branches = branch -a + remotes = remote -v # This only works if git > 0.7.10 # # [include] diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 18d4cceca..3b2153cf8 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -9,6 +9,8 @@ alias gl='git pull' compdef _git gl=git-pull alias gup='git pull --rebase' compdef _git gup=git-fetch +alias gpr='git pull --rebase' +compdef _git gpr=git-fetch alias gp='git push' compdef _git gp=git-push alias gfa='git fetch --all' @@ -83,6 +85,8 @@ alias gss='git stash show --text' alias gitk-entier-history='gitk --all $(git log -g --pretty=format:%h)' # show complete history, with dangling commits # Note: if the commit has been cleaned my 'git gc', the dangling commits older than 2 weeks may have been deleted # +alias gitconfig="vim ~/.gitconfig" +alias gitmessage="vim ~/.gitmessage" # Will cd into the top of the current repository # or submodule.