Reputation: 74064
I have developed a Google App Engine web application versioned on GitHub.
I'm going to "port" this application making it GAE agnostic; this port would have several files in commons with the original project but also a different file system structure.
Is it better to create a new branch (nogae
) and work on it or is it preferable to create a new git repo (project.nogae
)?
What's the pros and cons?
Upvotes: 7
Views: 264
Reputation: 1323203
Creating a new branch is interesting if the two versions are tightly linked together (some evolutions on one are likely to be reported on the other):
If the files are the same in both branches (even if their names/paths are different), a branch is a good choice.
But if the two projects will evolves independently, with few common files, then two separate projects are better.
If the common set of files is important enough, then a third project might be created and imported in the first two ones as a submodule.
Upvotes: 6