I’m not sure if this is possible but I’d like to be able to have a single file and use it in two projects saved in git repostories. Such that, if I make a change in one project the other one would pick up that change when the file was pulled. Ideally the history of that particular file would show all the changes from both projects.
Everything else would remain separate.
git submodule command can give you part of the functionality but it requires additional steps to keep the file in sync.