summaryrefslogtreecommitdiff
path: root/git/push-git.pl
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2025-11-08 03:47:37 -0600
committerBrad Clawsie <brad@b7j0c.org>2025-11-08 03:47:37 -0600
commit9178683da32a76ceaac8d70271042482bc317770 (patch)
tree40724e4e42ad311a0139fc4096f03513d40ddf1f /git/push-git.pl
parent3213e529e082cf9d99e4bbb431acc703e03a8b71 (diff)
new git scripts
Diffstat (limited to 'git/push-git.pl')
-rwxr-xr-xgit/push-git.pl12
1 files changed, 12 insertions, 0 deletions
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__