#!/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 =<