From c6627adb35a3c188429faca80f094a12835445fb Mon Sep 17 00:00:00 2001 From: jshort Date: Wed, 1 Feb 2017 13:37:51 -0800 Subject: [PATCH] gcob alias (checkout new branch) I prefer to use gco -b to create a new branch and check it out in one fell swoop. This alias would enable that with `gcob`. --- plugins/git/git.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 34942d38..1ca2c972 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -76,6 +76,7 @@ alias gcm='git checkout master' alias gcd='git checkout develop' alias gcmsg='git commit -m' alias gco='git checkout' +alias gcob='git checkout -b' alias gcount='git shortlog -sn' compdef _git gcount alias gcp='git cherry-pick'