From 9178683da32a76ceaac8d70271042482bc317770 Mon Sep 17 00:00:00 2001 From: Brad Clawsie Date: Sat, 8 Nov 2025 03:47:37 -0600 Subject: new git scripts --- git/push-git.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 git/push-git.pl (limited to 'git/push-git.pl') diff --git a/git/push-git.pl b/git/push-git.pl new file mode 100755 index 0000000..15cfc75 --- /dev/null +++ b/git/push-git.pl @@ -0,0 +1,12 @@ +#!/usr/bin/env perl +use v5.42; + +my $branch = `git branch --show-current`; +$branch =~ s/\s+$//g; +say 'pushing to ' . $branch; +for my $remote (qw( b7j0c github sr.ht codeberg )) { + my $cmd = "git push $remote $branch"; + say $cmd; + system($cmd); +} +__END__ -- cgit v1.2.3