You can have several URLs per remote in git, even though the git remote
command did not appear to expose this last I checked. In .git/config
, put something like this:
[remote "public"]
url = git@github.com:kch/inheritable_templates.git
url = kch@homeserver:projects/inheritable_templates.git
Now you can say “git push public
” to push to both repos at once.