GitHub Update Fork's code

Source: Internet
Author: User
Reprint Address: http://blog.csdn.net/do_it__/article/details/7836513 First, the premise

The premise of this article is that you've already forked someone else's branch on GitHub, and you've got an SSH connection to GitHub.
Related configuration details Reference: https://help.github.com

Second, detailed operation
  1. Check out the branch that you fork someone on GitHub to the Rrest directory, where the Rrest directory does not exist before.
    git clone [email protected]:yss/rrestjs.git rrest
  2. Then add the remote branch (that is, the branch of the person you fork) to your local name Bob (this name is arbitrary).
    Git remote add Bob Https://github.com/DoubleSpout/rrestjs.git
    If you run the command: Git remote-v you'll find out more about a Bob's remote branch. As follows:
    Bob Https://github.com/DoubleSpout/rrestjs.git (FETCH) Bob Https://github.com/DoubleSpout/rrestjs.git (push) Origin [ Email protected]:yss/rrestjs.git (FETCH) origin [email protected]:yss/rrestjs.git (push)
  3. Then, pull each other's code to your local.
    git fetch bob
  4. Finally, merge each other's code.
    git merge Bob/master
  5. Finally, push the latest code to your github.
    Git push Origin Master

This completes your own code update.

GitHub Update Fork's code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.