I have two repo's which I'd like to keep separate. One for development, branches are features/fixes etc, the other is a production release, where its branches are for versions.
我有两个回购,我想分开。一个用于开发,分支是功能/修复等,另一个是生产版本,其分支用于版本。
I'm still very new to version control, so I'm not even sure I'm doing it correctly.
我仍然是版本控制的新手,所以我甚至不确定我是否正确地进行了操作。
What I'd like to do, is fork master from development, then that fork be a new branch in production with a version number, say 1.3 etc.
我想做的是fork开发中的fork,然后fork就是生产中的一个新分支,版本号,比如1.3等。
Is this possible, or is there a better way to do this?
这可能,或者有更好的方法吗?
1 个解决方案
#1
2
The better way is to use one repo with branches for features and either branches or tags for versions. That makes it much easier to merge branches and move commits around, compared to having two repos. It also saves confusion on the part of the developers.
更好的方法是使用一个带有分支的repo for features和版本的分支或标签。与使用两个repos相比,这使得合并分支和移动提交更加容易。它还可以节省开发人员的困惑。
#1
2
The better way is to use one repo with branches for features and either branches or tags for versions. That makes it much easier to merge branches and move commits around, compared to having two repos. It also saves confusion on the part of the developers.
更好的方法是使用一个带有分支的repo for features和版本的分支或标签。与使用两个repos相比,这使得合并分支和移动提交更加容易。它还可以节省开发人员的困惑。