git - 基于开源项目的二次开发如何进行的版本管理
phpcn_u1582
phpcn_u1582 2017-05-02 09:29:06
0
1
865

问题:项目组要定制某个GitHub上的开源项目, 如何做到当开源项目的版本更新了,如何做到我们本地clone版本可以进行merge?

phpcn_u1582
phpcn_u1582

reply all(1)
仅有的幸福

Tell me your own method and give some advice:

  1. Fork open source projects to your own github

  2. clone fork future projects locally

  3. 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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!