rentzsch.tumblr.com: Public-But-Hackable Git Submodules
When offering a public project on GitHub, I need to publish read-only URLs. Otherwise GitHub will hang up on the submodule pull request since no one else has my private key.
However, that’s a downer for me since I often want to be able to hack on submodules in-place, where they’re being used in…
There’s a better way.
Stick this in your global .gitconfig
:
[url "git@github.com:yourname/"] insteadOf = "git://github.com/yourname/"
Repeat similarly for any URLs of other people’s projects that you’re a direct contributor to. From then on, you can always use the git://
URLs, and it will Just Work™.