Is there a better way to keep your own copy of a customized open source project?

对着背影说爱祢 提交于 2019-12-13 01:25:16

问题


I use an open source project to host a site (OrchardCMS) which is available in a GIT repository via CodePlex. I have made a few customizations to the source code that are specific to my implementation and I want to keep preserved and under source control. However the challenge arises when there's a new release of the source engine.

My changes certainly won't go into the blessed repository everyone uses.

Currently I'm using two repositories. I use the CodePlex OrchardCMS repository to get the latest changes from the engine the community uses (and that I contribute some bug fixes to).

I then have my own copy which contains my changes. For this, I am using my own source control (hosted TFS from Microsoft). When an update to the core engine comes out, I XCOPY all the files from the current source to my self-maintained repository and commit them to my project.

However this seems like there should be a better option. Any opinions?


回答1:


You can use git to have an alternative solution.

You can clone the git main repo and keep it updated with the new relases, and you can keep your local modifications, that aren't to be shared with anyone, on a local branch.

When a new release came out, you simply update your master branch in your git repo an then you can rebase or merge your local modications on top of it.



来源:https://stackoverflow.com/questions/19001788/is-there-a-better-way-to-keep-your-own-copy-of-a-customized-open-source-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!