aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shellrc.d/common4
1 files 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"