simonthum / git-sync

Safe and simple one-script git synchronization
773 stars 99 forks source link

Adding descriptive help text for missing upstream #8

Closed codereflection closed 8 years ago

codereflection commented 8 years ago

Adding descriptive help text for missing upstream branch, instructing the user on what to do to correct the issue.

Example output:

21:38 $ git-sync check
git-sync: Preparing. Repo in .git
git-sync: the current branch does not have a configured remote.

git-sync: Please use

  git branch --set-upstream-to=[remote_name]/master

replacing [remote_name] with the name of your remote, i.e. - origin
to set the remote tracking branch for git-sync to work
simonthum commented 8 years ago

Thanks a lot, that's much better guidance!