Pete Alex Harris🦡🕸️🌲/∞🪐∫ on Nostr: npub1upkp7…4tcwy After a bit of trial and error I settled for this: ---- #! ...
npub1upkp7fd7rc3lrjg23r8gy0wc723vze7mxlx5984ut6zurjzpf5xss4tcwy (npub1upk…tcwy)
After a bit of trial and error I settled for this:
----
#! /bin/bash
new_branch_name=$1
main_branch_name=$(git branch | awk '/(main|master)/ { print $2 }')
git checkout $main_branch_name && git pull && git checkout -b $new_branch_name
----
After a bit of trial and error I settled for this:
----
#! /bin/bash
new_branch_name=$1
main_branch_name=$(git branch | awk '/(main|master)/ { print $2 }')
git checkout $main_branch_name && git pull && git checkout -b $new_branch_name
----