Because I don't want to spend +$12 for the simple-to-use github.com private hosting, I place a lot of my code libraries in small repositories on a shared hosting account. This allows me to have as many code repos as I want.
Since those repos don't take any resources to sit there I also put a couple very light sites on that account to maximize my usage. These sites actually use some of those same code repos as submodules of their projects.
So, I push/pull code for each repo and site over ssh. The sites themselves setting just a couple directives down also pull those submodules.
So I have a simplesite.tld project on my pc with a submodule that looks like this:
[submodule "modules/blog"]
path = modules/blog
url = [email protected]:~/git/modules/blog/
Then I push the code to the simplesite.tld and login to the shared host through SSH and update the simplesite.tld modules
git submodule update
But it asks me for my SSH password for the "user" in order to login and get the repo code. Which is just an annoyance since the repo is on the same server.
So is there a better submodule link that I can use that both foreign computers (like my PC) and projects in the same harddrive can both use?