steffen-wirth
2/9/2017 - 11:43 AM

new remote branches

new remote branches

#create new remote branch
git push -u <remote-name> <local-branch-name>:<remote-branch-name>

# create new lokal branch - setup with new remote branch
git fetch origin serverfix
git checkout -b serverfix origin/serverfix

# set remote tracking branch
git branch -u upstream/foo

#Or, if local branch foo is not the current branch:
git branch -u upstream/foo foo