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 connection between 1.x and 2.x) I’m wondering if 2.x is actually a real branch or if I should better start a completely new repository for that.
Wondering what the advantages and disadvantages of each solution are. I could imagine that switching from a 1.x branch to a 2.x branch will take quite some time.
If you decide to keep both versions in the code (which makes sense), you can create a second root branch:
(as detailled in “How to merge codeline with git” and in “Deploying a Re-Written Github/Heroku App“)