From 9d77ce3f21b279b465beef4cb5fcbc9efafef340 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 16 Feb 2010 17:46:46 +0000 Subject: [PATCH] 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 along with an example of how to set user.email just for F 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. --- pod/perlrepository.pod | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pod/perlrepository.pod b/pod/perlrepository.pod index 19b952c..af2229d 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: + + % git config user.email avar@cpan.org It is also possible to keep C as a git remote, and add a new remote for ssh access: -- 2.7.4