Starting from scratch for v2.0. Should I keep using the existing git repo or start a new one?

前端 未结 2 1852
遥遥无期
遥遥无期 2020-12-16 02:10

I have a git repo which has code for all 1.x releases. Now I\'m starting to work on the 2.x \"branch\". Since I\'m starting to code that completely from scratch again (no co

2条回答
  •  独厮守ぢ
    2020-12-16 03:09

    If you decide to keep both versions in the code (which makes sense), you can create a second root branch:

    git checkout --orphan branchForV2
    

    (as detailled in "How to merge codeline with git" and in "Deploying a Re-Written Github/Heroku App")

提交回复
热议问题