From c9fb5ef4185d4e7f2fab08a59999ef576c8b17cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 31 Jan 2018 13:35:44 +0100 Subject: Change gitbnew to use HEAD instead of master --- shellrc.d/common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shellrc.d/common b/shellrc.d/common index ce744ea..bbe13d6 100644 --- a/shellrc.d/common +++ b/shellrc.d/common @@ -59,9 +59,9 @@ gitbmerge() { ) } -# Create new branch from master +# Create new branch from HEAD gitbnew() { - git branch "$1" master + git branch "$1" HEAD local NW="$(git rev-parse --show-toplevel)-$1" git worktree add "$NW" $1 cd "$NW" -- cgit v1.2.3