Add mt-git to manage git identities easier
This commit is contained in:
parent
7dcc34cc34
commit
d3486d6373
10
home/bin/mt-git
Executable file
10
home/bin/mt-git
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
# Set my local git config to my work email so I don't change my global gitconfig
|
||||||
|
|
||||||
|
if (!-d "./.git") {
|
||||||
|
die "You don't appear to be inside a git repository.\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
system(qw(git config user.email npetherbridge@mediatemple.net));
|
||||||
|
print "E-mail updated for this repository.\n";
|
Loading…
Reference in New Issue
Block a user