Jonathan "Duke" Leto
12 years ago
1 changed files with 22 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||
#!/usr/bin/env perl |
|||
|
|||
use strict; |
|||
use warnings; |
|||
use autodie; |
|||
|
|||
my ($remote, $branch) = @ARGV; |
|||
open(my $fh, ">>.git/config"); |
|||
|
|||
$remote ||= 'origin'; |
|||
$branch ||= 'master'; |
|||
|
|||
my $config =<<CONFIG; |
|||
[branch "$branch"] |
|||
remote = $remote |
|||
merge = $branch |
|||
rebase = true |
|||
CONFIG |
|||
|
|||
print $fh $config; |
|||
close $fh; |
|||
print "Added the following to .git/config:\n$config\n"; |
Loading…
Reference in new issue