Multiple versions of an application.

I am developing an application which will be published in multiple versions. There will be a core set of files which will be part of every version then a set of files for each version which will be unique to that version. I can set up and commit the core then branch off it for each version. Can I merge the core into a branch to publish that particular version? How can I prevent core files from being modified in a branch? I imagine this is not an uncommon scenario and would appreciate some guidance on how to do it.

Hi @mlgch1,

Thanks for being part of the GitHub Community Forum. I’ll answer your question as best I can.

I’d actually recommend using Releases for what you’re describing. There’s no need to keep separate branches for each version because a Release can target a specific commit. 

If you need to target a commit that’s further back than the UI will allow, you’ll just need to create a tag for it.

I hope this helps! 

Thanks Nadiajoice

1 Like