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
- In someone else's project A, click Fork and copy the item to your GitHub account, which is recorded as B.
git clone
Copy B to Local.
- After adding a new feature locally, proceed sequentially
git commit
, and so on, git push
synchronize the feature code you added locally to B.
- 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.
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