summaryrefslogtreecommitdiff
path: root/pod/perlrepository.pod
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-02-16 17:46:46 +0000
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>2010-02-16 17:46:46 +0000
commit9d77ce3f21b279b465beef4cb5fcbc9efafef340 (patch)
tree3ddc0dc64a0ba9b1313d1ec09220253e18e5c087 /pod/perlrepository.pod
parente0b2b458eee3edd8e2a0817b5bfe0a9104be8ab5 (diff)
downloadperl-9d77ce3f21b279b465beef4cb5fcbc9efafef340.tar.gz
Adjusted the git config user.name/user.email example for what 99% of users would like to do
Almost nobody wants to set user.name/user.email on a per-repository basis as the previous example suggested. I put in a new example that shows how to use C<git config --global> along with an example of how to set user.email just for F<perl-git> I replaced Leon Brocard's name with mine because he didn't fit into the multiple E-Mail address example and I couldn't think of another example.
Diffstat (limited to 'pod/perlrepository.pod')
-rw-r--r--pod/perlrepository.pod12
1 files changed, 9 insertions, 3 deletions
diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod
index 19b952c0aa..af2229d750 100644
--- a/pod/perlrepository.pod
+++ b/pod/perlrepository.pod
@@ -69,10 +69,16 @@ this:
% git config remote.origin.url ssh://perl5.git.perl.org/perl.git
-You can also set up your user name and e-mail address. For example
+You can also set up your user name and e-mail address. Most people do
+this once globally in their F<~/.gitconfig> by doing something like:
- % git config user.name "Leon Brocard"
- % git config user.email acme@astray.com
+ % git config --global user.name "Ævar Arnfjörð Bjarmason"
+ % git config --global user.email avarab@gmail.com
+
+However if you'd like to override that just for perl then execute then
+execute something like the following in F<perl-git>:
+
+ % git config user.email avar@cpan.org
It is also possible to keep C<origin> as a git remote, and add a new
remote for ssh access: