A workflow with remote branches on git
This is the workflow that we are currently using for work with remote branches. ###Pushing local branch to remote
That will create a new branch in the remote repository and the appropriate ref.
###Pulling from remote to local branch Before checking out, we need to fetch the branch, because our repo is not aware of it. Run this to understand what I mean.:
So… let’s fetch and then we’ll be able to do the checkout.
You can add a –track to the last command to set up upstream configuration (see the docs)