Permalink
Browse files

Merge pull request #8 from codereflection/master

Adding descriptive help text for missing upstream
  • Loading branch information...
2 parents fb678f3 + 82f3041 commit eb9adaf2b5fd65aac1e83d6544b9076aae6af5b7 @simonthum committed Oct 24, 2015
Showing with 7 additions and 0 deletions.
  1. +7 −0 git-sync
View
7 git-sync
@@ -206,6 +206,13 @@ remote_name=$(git config --get branch.$branch_name.remote)
if [ -z "$remote_name" ] ; then
echo "git-sync: the current branch does not have a configured remote."
+ echo
+ echo "git-sync: Please use"
+ echo
+ echo " git branch --set-upstream-to=[remote_name]/$branch_name"
+ echo
+ echo "replacing [remote_name] with the name of your remote, i.e. - origin"
+ echo "to set the remote tracking branch for git-sync to work"
exit 2
fi

0 comments on commit eb9adaf

Please sign in to comment.