git - How to perform version management based on secondary development of open source projects
phpcn_u15822017-05-02 09:29:06
0
1
931
Question: The project team wants to customize an open source project on GitHub. How can we ensure that when the version of the open source project is updated, how can our local clone version be merged?
Use the git remote add command to add the open source project as a remote repository, for example, named fork
In this way, you have two remotes, one origin (for your own fork) and one fork (for the open source project). Your own changes are directly pushed to the master. You need to merge the updates of the open source project for usegit pull fork master. After merging the code, push it to your own. master
Tell me your own method and give some advice:
Fork open source projects to your own github
clone fork future projects locally
Use the
git remote add
command to add the open source project as a remote repository, for example, named forkIn this way, you have two remotes, one origin (for your own fork) and one fork (for the open source project).
Your own changes are directly pushed to the master. You need to merge the updates of the open source project for use
git pull fork master
. After merging the code, push it to your own. master