summaryrefslogtreecommitdiff
path: root/git/pull-git.pl
blob: 66ddeb4f4bac7a39e55ab769f0bf61e6b4d719a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl
use v5.40;

my $branch = `git branch --show-current`;
$branch =~ s/\s+$//g;
say 'pulling from ' . $branch;
for my $remote (qw( b7j0c github sr.ht codeberg )) {
  my $cmd = "git pull $remote $branch";
  say $cmd;
  system($cmd);
}
__END__