Mirroring a gogs repository to github?


I have a gogs personnal server named A, which contain git project A1, A2, etc.

I’m searching a way to automatically mirror commits made on A1 on github using an option like “push to remote repository” existing in gitlab. This functionality exist in gogs ? You could find a description here

I see it’s possible to mirror github project to gogs repository, so i search the opposite, mirroring a gogs read/write repository to github read/only project.


You can use custom Git hook… but no builtin feature for this yet.



Do you have any example of a custom Git hook to push mirror a repo?

I looked for custom web hook example at link below:

xie xie for amazing Gogs code!


Hi, I personally hasn’t used any custom Git hooks so sadly I could not provide any working example at this time.