From: Oleg Broytman Date: Sat, 16 Jul 2016 23:36:17 +0000 (+0300) Subject: Fix setting upstream branch X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=aa6ffea5ece4a4e18226a19792185a3e05a64ca0 Fix setting upstream branch git branch --set-upstream-to requires that remote-tracking branch web/master already exists. Use git push -u instead. --- 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