How do I manage and update two different app versions, which are with and without advertisements, but are otherwise identical, using git. Up to this point in development, I've only needed to maintain one branch.
1 Answer
You can try to utilize version control for this, but I recommend against it.
Such a requirement is much easier to manage by maintaining only one "version" or "branch" of the application, when you add a compile-time feature toggle for enabling or disabling advertisements. If you like, you can also modify your build process to create always both variants of the application.
-
2I agree. There's no real point to keeping two different source control branches/repos for something which is easily toggled. Jun 8, 2017 at 6:59