Last active
August 29, 2015 13:55
-
-
Save eliza-abraham/8779810 to your computer and use it in GitHub Desktop.
Pull From New Remote Branch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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