diff --git a/post-receive b/post-receive new file mode 100755 index 0000000..2635899 --- /dev/null +++ b/post-receive @@ -0,0 +1,9 @@ +#!/bin/bash +# Mirror pushes across ALL branches to GitHub + +GITHUB_REMOTE=github +BRANCHES=$(git branch -r | grep -v '\->' | sed 's/origin\///') + +for branch in $BRANCHES; do + git push $GITHUB_REMOTE $branch +done