Skip to content
Donald Buczek edited this page Nov 23, 2016 · 10 revisions

mariux64/bee-files Cheatbook / HOWTO and FAQ

Create a new "feature branch" for a pull request

git checkout master
git pull                      # make sure, you are branching from the latest and greatest version
git checkout -b add-foobar

Push my feature branch to github.molgen.mpg.de

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