From aa6ffea5ece4a4e18226a19792185a3e05a64ca0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 17 Jul 2016 02:36:17 +0300 Subject: [PATCH] Fix setting upstream branch git branch --set-upstream-to requires that remote-tracking branch web/master already exists. Use git push -u instead. --- publish2web | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish2web b/publish2web index 567cf14..b7bd785 100755 --- a/publish2web +++ b/publish2web @@ -49,4 +49,4 @@ if [ -n "$directories" ]; then dest_dir="$directories/$dest_dir" fi && git remote add web "$HOME"/Internet/WWW/htdocs/git.phdru.name/"$dest_dir" && -exec git branch --set-upstream-to=web/master master +exec git push --set-upstream web master -- 2.39.5