summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@mop.localdomain>2023-06-30 11:03:40 +0000
committerroot <root@mop.localdomain>2023-06-30 11:03:40 +0000
commit0448e748a620da9629dada95db76759b55422478 (patch)
tree441dbe045a612bb0bd17fe882d222d0a832c3a08
parent74555787d4edaf91e67c42444334b1d41fc3a3e0 (diff)
Added main and master, one of these will raise an error but it doesn;tHEADmaster
really matte
-rwxr-xr-xmkgit-client1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkgit-client b/mkgit-client
index 12acd24..178a96c 100755
--- a/mkgit-client
+++ b/mkgit-client
@@ -6,6 +6,7 @@ fi
git remote rm origin
git remote add origin $2:$1
git push --set-upstream origin master
+git push --set-upstream origin main
BRANCHES=$(git branch | sed "s/*//g")
for BRANCH in ${BRANCHES[@]}; do
git branch $BRANCH --set-upstream-to origin/$BRANCH