Skip to content

Instantly share code, notes, and snippets.

@eliza-abraham
Last active August 29, 2015 13:55
Show Gist options
  • Save eliza-abraham/8779810 to your computer and use it in GitHub Desktop.
Save eliza-abraham/8779810 to your computer and use it in GitHub Desktop.
Pull From New Remote Branch
$ git fetch origin
Fetches all the remote branches from origin.
$ git checkout --track origin/<remote_branch_name>
This will create a local branch that tracks a remote branch. This command will create the local branch specified in <remote_branch_name>, track the remote branch origin/<remote_branch_name>.
When you push your changes the remote branch will be updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment