summaryrefslogtreecommitdiff
path: root/git/push-git.pl
blob: 15cfc759c5cc7fa397c565f76aca6edb66a3284d (plain)
1
2
3
4
5
6
7
8
9
10
11
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__