diff options
Diffstat (limited to 'git/pull-git.pl')
| -rwxr-xr-x | git/pull-git.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/git/pull-git.pl b/git/pull-git.pl new file mode 100755 index 0000000..162537a --- /dev/null +++ b/git/pull-git.pl @@ -0,0 +1,12 @@ +#!/usr/bin/env perl +use v5.42; + +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__ |
