From a98d6264fea8e4ea9a2336491f910eb7443635ce Mon Sep 17 00:00:00 2001 From: Parker Date: Tue, 14 Jan 2025 14:20:41 -0600 Subject: [PATCH] Update --- post-receive | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 post-receive 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