aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2020-12-18 22:26:07 -0600
committerMark Powers <mark@marks.kitchen>2020-12-18 22:26:07 -0600
commitf576ed38912bd5132412b5c4ee75d25f564e10f9 (patch)
tree26fd6d4b92a1609a75dd2a187d2e323d9beace43
parent3a3af2ad3dcba142984b51c99a5d04ff9dd409c3 (diff)
Add set-branch-to
-rwxr-xr-xrepo.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/repo.sh b/repo.sh
index df4c7da..abc3e04 100755
--- a/repo.sh
+++ b/repo.sh
@@ -26,7 +26,8 @@ case $1 in
dir="$repo_location$2.git"
printf "git init\n"
printf "git remote add origin git@marks.kitchen:$dir\n"
- printf "git push origin master\n"
+ printf "git branch --set-upstream-to=origin/master master\n"
+ printf "git push\n"
;;
list) # list repos on the server
get_repos