So I’ve got a a public library on Github. I’ve also created a repository for my own private stuff. For that I’ve created a bare repository on my local NUC server sitting on my home network connecting over SSH. That doesn’t really matter to the question. My public repository has a Util module, I not only want to use this code for my private stuff, but modify and improve it at the same time. Committing and pushing the changes to the two repositories I want to keep completely separate.
So I’m wondering how best to handle this. I imagine that wanting to work on 2 libraries or a library and an application at the same time must be quite common. As I’m writing I’m thinking that maybe the best way is just to put a soft directory link to the local public library source code in the local private project folder on my desktop and laptop. Put the link into the gitignore, but include the linked directory(ies) in Sbt and Mill files for the private project as if it were one combined project.