Hi,
I have two projects that share 90% of their codebase with eachother. What is the best way to manage them on stash so that when I make changes, the shared code is updated for both projects but the code that is unique to each one stays unique?
-hans
The 'correct' way is to modularise your code.
That way the shared code goes in it's own module and can be pulled in by whatever build system you use. e.g. Maven, you declare a dependency
However, if not possible, or impractical now, you could look at using something like git sub-modules.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.