How two organize two projects that have common part of code ?
I have 2 projects that have common part of code, that is being changed from time to time. I use TortoiseGit.
For example
project 1 - master
project 2 - dev-branch.
As I understand when I make changes in dev-branch (changes in specific dev-branch code and in common with master code) and then merge master with dev-branch, master will get also specific dev-branch code.
How do I resolve this situation to get, for master, only master specific changes?