Created
August 31, 2019 13:18
-
-
Save farynaio/f3039cf4a1dcaecda98906fcbe1ba8e3 to your computer and use it in GitHub Desktop.
post-receive hook: push to alternative Github repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
read oldrev newrev refname | |
prefix="refs/heads/" | |
branch=${$refname#$prefix} | |
git push github $branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment