Best practice for managing project variants in Git?

前端 未结 5 2124
闹比i
闹比i 2020-12-31 11:58

I have to develop two Django projects which share 90% of the same code, but have some variations in several applications, templates and within the model itself.

I\'m

5条回答
  •  太阳男子
    2020-12-31 12:37

    You can use two different git branches for development. When you make changes in one that are common to the other, just git-cherrypick them over. You can push and pull specific branches, too, so that no one ever need know you're working on both of them at the same time.

提交回复
热议问题