7

I have a git repository at SourceForge and now I need to move the repository from SourceForge to Github. I did it using Github import option given in following link.

https://import.github.com/new

enter image description here

Going forward I'm going to use the Github repository as the main repository where changes will push but I don't want to discontinue my SourceForge repository. Even though I will not push to SourceForge repository I want to setup an automated mechanism to synchronize changes for each push from Github to SourceForge. I found a Git option which can achieve this called “post-update” hooks and it works without any issue for repositories hosted in my internal servers.

http://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

But Github seems not supporting for post-update hooks for security reasons and instead of that it supports for “Webhooks”

How to run post-receive hook on GitHub

But if I use Webhooks, I may have to setup an intermediate server which listen for these Webhook notifications and push the changes to SourceForge.

Question:

Is there any other setup I can follow to achieve directly synchronize a Github repository to a SourceForge repository without maintaining an intermediate repository as I explained with Webhooks?

Note: Setting up Github repo and the SourceForge repo both as remotes in the developers local repository won't work in my case because there will be dozens of developers involve in contributing to the project and we don't have control over it.

Community
  • 1
  • 1
Thilanka
  • 1,733
  • 5
  • 21
  • 36
  • hi there, use the github webhooks – CodeWizard Apr 06 '15 at 18:36
  • @jsexpert If I use Github webhooks I need to use an intermediate server to listen to webhook notifications and then push change to sourceforge. I don't want to use a 3rd party server and I want to syncronize it directly from Github to sourceforge. – Thilanka Apr 07 '15 at 02:50
  • You may want to think about make some script in Travis-CI for automatic deployment. – Xiaodong Qi Dec 11 '16 at 05:44

0 Answers0