diff --git a/shell/share.sh b/shell/share.sh index 80c3f36a..7630adc7 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -345,6 +345,7 @@ reset_romote_url() { if [[ $branch ]]; then part_cmd="origin/${branch}" git checkout -B "$branch" + git branch --set-upstream-to=$part_cmd $branch fi git reset --hard $part_cmd &>/dev/null cd $dir_current