Skip to content
This repository
tree: 00f2594146
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 28 lines (22 sloc) 0.87 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
#!/usr/bin/perl
#
#
# Configure basic git settings
#

use feature 'say';

say 'Configuration for global work using git';

print 'Please write your Github user name: ';
my $user = readline;
chomp $user;

print 'Please write your Github email address: ';
my $email = readline;
chomp $email;

system('git', 'config', '--global', 'user.name', $user );
system('git', 'config', '--global', 'user.email', $email );
system('git', 'config', '--global', 'push.default', 'tracking' );
system('git', 'config', '--global', 'pack.threads', 0 );
system('git', 'config', '--global', 'core.autocrlf', 'false' );
system('git', 'config', '--global', 'apply.whitespace', 'nowarn' );
system('git', 'config', '--global', 'color.ui', 'auto' );
system('git', 'config', '--global', 'core.excludesfile',"~/.gitignore" );
system('git', 'config', '--global', 'alias.up', 'pull --rebase' );
Something went wrong with that request. Please try again.