Question regarding Git best practices. When making a major new version of a project (in my case it's a Codeigniter project) I am faced with two options:
Create a new branch (e.g.
branch version2
)Create a copy of existing project folder and make it a new git project.
Advantage of 1): development may be ongoing for version1
branch, so it will be easier to merge them at the end.
Disadvantage of 1) (and therefore advantage of 2)): version2
will be using an entirely new database, and will (at first) be hosted on a different staging server. Since my config
files are not part of the repository, each time I want to switch between branches I'll have to manually edit the database config
file.