GIT merge remote repository to local branch

First, add the remote repository
$ git remote add
Example:
$ git remote add test-repo git@bitbucket.org:testing/testing-repository

Then, pull the remote branch or master to local branch.
If local branch has not been created yet, create local branch:
$ git branch test_pull
Checkout the branch
$ git checkout test_pull

Now, pull remote branch which named as remote_test_branch
$ git pull test-repo remote_test_branch

By Keenlio, April 16, 2014

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *


6 + five =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>