I'm interested in moving some more repositories from my personal github
account over to sr.ht, though I don't want to archive the github repos
(at least, yet) because they're great for discoverability. Ideally, I
would like to turn the github repos into mirrors of sr.ht. Is there any
way to implement a commit hook in sr.ht that would be able to push
changes over to github?
Thanks!
The easiest way at the moment is to set up a double remote:
git clone git@git.sr.ht:... foobar
cd foobar
git remote set-url --add origin git@github.com:...
Then when you `git push`, it'll push to both.
Ah I didn't realize that was doable with git, thanks for the pro-tip!
On 9/11/19 12:11 PM, Drew DeVault wrote:
> The easiest way at the moment is to set up a double remote:>> git clone git@git.sr.ht:... foobar> cd foobar> git remote set-url --add origin git@github.com:...>> Then when you `git push`, it'll push to both.
Drew DeVault wrote:
> The easiest way at the moment is to set up a double remote:> > git clone git@git.sr.ht:... foobar> cd foobar> git remote set-url --add origin git@github.com:...> > Then when you `git push`, it'll push to both.
Wow! Can mercurial also specify a double remote (a double default-push, that is)?
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/
Victor Sudakov @ 2019-09-12 02:27 UTC:
> Drew DeVault wrote:>> The easiest way at the moment is to set up a double remote:>>>> git clone git@git.sr.ht:... foobar>> cd foobar>> git remote set-url --add origin git@github.com:...>>>> Then when you `git push`, it'll push to both.>> Wow! Can mercurial also specify a double remote (a double default-push, that is)?https://stackoverflow.com/questions/3262782/how-to-sync-two-or-more-mercurial-servers
--
Lugubris
Lugubris wrote:
> > >> The easiest way at the moment is to set up a double remote:> >>> >> git clone git@git.sr.ht:... foobar> >> cd foobar> >> git remote set-url --add origin git@github.com:...> >>> >> Then when you `git push`, it'll push to both.> >> > Wow! Can mercurial also specify a double remote (a double default-push, that is)?> > https://stackoverflow.com/questions/3262782/how-to-sync-two-or-more-mercurial-servers
Setting up a hook, I see.
--
Victor Sudakov, VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/