From 11ea2ff314a1358abc1a0eda935979d005d9daa8 Mon Sep 17 00:00:00 2001 From: Austen Date: Wed, 18 Jun 2014 19:30:24 -0400 Subject: [PATCH] Added cbranch command to move to new branch after commit --- gitconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/gitconfig b/gitconfig index 0a45698..0a825e1 100644 --- a/gitconfig +++ b/gitconfig @@ -14,6 +14,7 @@ type = cat-file -t dump = cat-file -p d = difftool + cbranch = !sh -c 'git commit -m \"$1\"&&git branch $2&&git reset --hard HEAD~1&&git co \"$2\"' - [push] default = matching [core]