From: Ævar Arnfjörð Bjarmason Date: Tue, 16 Feb 2010 17:46:46 +0000 (+0000) Subject: Adjusted the git config user.name/user.email example for what 99% of users would... X-Git-Tag: accepted/trunk/20130322.191538~9478^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d77ce3f21b279b465beef4cb5fcbc9efafef340;p=platform%2Fupstream%2Fperl.git 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. --- 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: