Search code examples
phpgitgitlabgithooksphabricator

ASK // Script Hooks push another repository


I am trying to do the automatic deployment script using git hooks and it is working, but only for copying a repository.

What I want to do is to automatically push to place another repository such as github/gitlab. How do I configure the script hooks in order to push it to where the other repository is?


Solution

  • If you're using phabricator, you can define mirrors in diffusion. Therefore add a new URI like this:

    enter image description here

    Phabricator now syncs all repository actions to the mirror sites.