From f576ed38912bd5132412b5c4ee75d25f564e10f9 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Fri, 18 Dec 2020 22:26:07 -0600 Subject: Add set-branch-to --- repo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3