Re: [PATCH] user-manual: Use "git config --global" instead of editing ~/.gitconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 10, 2007 at 11:53:31PM +0200, Johan Herland wrote:
> Use git-config for setting global user.name and user.email rather than
> telling the user to edit ~/.gitconfig directly. This brings 
> user-manual.txt in line with tutorial.txt.

The inconsistency is intentional.  We want users to know about
git-config, because it's helpful when writing scripts, and because it
has a useful manpage.  But we also want them to know about the
config-file syntax, since most of us find reading and editing a file
more intuitive than running git-config.  So we use a mixture of both.

--b.

> Signed-off-by: Johan Herland <johan@xxxxxxxxxxx>
> ---
>  Documentation/user-manual.txt |    7 ++-----
>  1 files changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/Documentation/user-manual.txt 
> b/Documentation/user-manual.txt
> index 13db969..23e2f45 100644
> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -158,11 +158,8 @@ Making changes
>  Make sure git knows who to blame:
>  
>  ------------------------------------------------
> -$ cat >>~/.gitconfig <<\EOF
> -[user]
> -	name = Your Name Comes Here
> -	email = you@xxxxxxxxxxxxxxxxxxxxxx
> -EOF
> +$ git config --global user.name "Your Name Comes Here"
> +$ git config --global user.email you@xxxxxxxxxxxxxxxxxxxxxx
>  ------------------------------------------------
>  
>  Select file contents to include in the next commit, then make the
> -- 
> 1.5.0.7
> 


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux