GitHub participates in open source projects with fork and pullrequest

Source: Internet
Author: User

The fork and Pullrequest features on GitHub are good for developers who want to be part of someone else's open source projects.

The steps are as follows
  1. In someone else's project A, click Fork and copy the item to your GitHub account, which is recorded as B.
  2. git cloneCopy B to Local.
  3. After adding a new feature locally, proceed sequentially git commit , and so on, git push synchronize the feature code you added locally to B.
  4. Then click Pull request on the B project ( on your own GitHub project ) to create a request that tells a project developer that I want to incorporate the new functionality into your project.
  5. A the owner of the project receives a notification of the request and decides whether to merge. Agreeing to a merger is tantamount to participating in the development of the project.

    These are the most basic steps involved in an open source project. For detailed git operation details, please learn to practice.

    How do I stay in sync with a project when there are new features added by others in the a project while participating in a certain phase?
    You can use the git fetch command to pull a project to the local, and then use git merge it with your own project a branch merge (of course, you can also directly use the pulls, equivalent to fetch+merge), so that the local project and a project synchronization purposes.
    Note that the fetch and merge here is a project, not your own B project .
    The above is a brief summary of their own practice, recorded to facilitate their own viewing and others reference.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

GitHub participates in open source projects with fork and pullrequest

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.