Skip to content

Instantly share code, notes, and snippets.

@trapd00r
Created August 8, 2011 08:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save trapd00r/1131436 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
my @staged = map {
chomp;
s/^M\s{2}(.+)/$1/ && $_
} grep { /^M\s{2}/ } `git status --short -b`;
scp_it( @staged );
sub scp_it {
map { system('scp', '-r', $_, "scp1\@rambo:etc/$_") } @staged;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment