-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Donald Buczek edited this page Nov 23, 2016
·
10 revisions
git checkout master
git pull # make sure, you are branching from the latest and greatest version
git checkout -b add-foobar
git checkout add-foobar # be on you branch
git push # and push it
now, if you are doing this for the first time, git will yet know, where to put the branch. But (as often) it has a good suggestion in the reply:
fatal: The current branch add-foobar has no upstream branch. To push the current branch and set the remote as upstream, use
git push --set-upstream origin add-foobar
so in that case, do as you are told:
git push --set-upstream origin add-foobar
not git knows, that you branch foobar