Re: [git-users] configure sourse

2018-12-13 Thread Konstantin Khomoutov
On Wed, Dec 12, 2018 at 05:26:56PM -0800, yu.l...@wdc.com wrote:

[...]
> > > when i configure user name, i used the command: $ git config --global 
> > > user.name "Yu Liu", 
> > > but the result is : the user name is set as Yu. 
> > > why the result is that, and how i change name to Yu Liu?? 
> >
> > This may simply mean that before running `git config` with the "--global" 
> > command-line option you have run it without one, and also without 
> > quoting your name -- like in, say 
[...]

> [image: error.PNG] 
> thank you very much for your kindly explaining. but when i remove the user 
> name, there is an error shown in the picture.

Please never post images, copy and paste text from them instead.

It's not always possible to display images (for instance, I'm reading my
mail in a console application), and the text they render is not
searcheable, and hence it does not get indexed by the Internet search
engines when your message is archived. This means the next person with
the same problem you have will not be able to search your post - and
possible answers to it (which is clearly a disservice to the community -
remember that this is not a paid support, and we're spending our time).

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] configure sourse

2018-12-12 Thread Yu . Liu3
thank you very much. i retry with the command:"git config --unset-all 
--global user.name" and it success.

On Wednesday, December 12, 2018 at 6:14:45 PM UTC+8, Konstantin Khomoutov 
wrote:
>
> On Wed, Dec 12, 2018 at 12:57:11AM -0800, yu@wdc.com  
> wrote: 
>
> > when i configure user name, i used the command: $ git config --global 
> > user.name "Yu Liu", 
> > but the result is : the user name is set as Yu. 
> > why the result is that, and how i change name to Yu Liu?? 
>
> This may simply mean that before running `git config` with the "--global" 
> command-line option you have run it without one, and also without 
> quoting your name -- like in, say 
>
>   $ git config user.name Yu Liu 
>
> If yes, that command have set the config.name parameter in the 
> configuration of your local Git repository (inside which you have run 
> that command), and now this local setting overrides your global one, so 
> setting `git config --global user.name ...` simply have no visible 
> effect. 
>
> "The trick" here is that Git have three levels where it stores its 
> configuration: 
>
>  - system: that's the system-global stuff under /etc on POSIX systems or 
>%ProgramFiles%\Git - on Windows. 
>
>  - global: that's the configuration global to a particular user, kept 
>under their home directory. 
>
>  - local: exists in a particular Git repository. 
>
> Each "more narrow" layer overrides the previous more wide one. 
> If a particular setting exists in a local repository, it's used, 
> otherwise the global config is consulted; failing that the system-wide 
> config is searched for, and finally the default setting for a parameter 
> is applied, if any. 
>
> Observe: 
>
>   $ git config --get-all user.name 
>   Konstantin Khomoutov 
>   
>   $ git config user.name Yu Liu 
>   
>   $ git config --get-all user.name 
>   Konstantin Khomoutov 
>   Yu 
>
> To solve the immediate problem you should remove the user.name parameter 
> from the local config: 
>
>   $ git config --unset user.name 
>
> Or you may be explicit: 
>
>   $ git config --unset --local user.name 
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] configure sourse

2018-12-12 Thread Yu . Liu3


[image: error.PNG] 
thank you very much for your kindly explaining. but when i remove the user 
name, there is an error shown in the picture.


On Wednesday, December 12, 2018 at 6:14:45 PM UTC+8, Konstantin Khomoutov 
wrote:
>
> On Wed, Dec 12, 2018 at 12:57:11AM -0800, yu@wdc.com  
> wrote: 
>
> > when i configure user name, i used the command: $ git config --global 
> > user.name "Yu Liu", 
> > but the result is : the user name is set as Yu. 
> > why the result is that, and how i change name to Yu Liu?? 
>
> This may simply mean that before running `git config` with the "--global" 
> command-line option you have run it without one, and also without 
> quoting your name -- like in, say 
>
>   $ git config user.name Yu Liu 
>
> If yes, that command have set the config.name parameter in the 
> configuration of your local Git repository (inside which you have run 
> that command), and now this local setting overrides your global one, so 
> setting `git config --global user.name ...` simply have no visible 
> effect. 
>
> "The trick" here is that Git have three levels where it stores its 
> configuration: 
>
>  - system: that's the system-global stuff under /etc on POSIX systems or 
>%ProgramFiles%\Git - on Windows. 
>
>  - global: that's the configuration global to a particular user, kept 
>under their home directory. 
>
>  - local: exists in a particular Git repository. 
>
> Each "more narrow" layer overrides the previous more wide one. 
> If a particular setting exists in a local repository, it's used, 
> otherwise the global config is consulted; failing that the system-wide 
> config is searched for, and finally the default setting for a parameter 
> is applied, if any. 
>
> Observe: 
>
>   $ git config --get-all user.name 
>   Konstantin Khomoutov 
>   
>   $ git config user.name Yu Liu 
>   
>   $ git config --get-all user.name 
>   Konstantin Khomoutov 
>   Yu 
>
> To solve the immediate problem you should remove the user.name parameter 
> from the local config: 
>
>   $ git config --unset user.name 
>
> Or you may be explicit: 
>
>   $ git config --unset --local user.name 
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] configure sourse

2018-12-12 Thread Konstantin Khomoutov
On Wed, Dec 12, 2018 at 12:57:11AM -0800, yu.l...@wdc.com wrote:

> when i configure user name, i used the command: $ git config --global 
> user.name "Yu Liu",
> but the result is : the user name is set as Yu.
> why the result is that, and how i change name to Yu Liu??

This may simply mean that before running `git config` with the "--global"
command-line option you have run it without one, and also without
quoting your name -- like in, say

  $ git config user.name Yu Liu

If yes, that command have set the config.name parameter in the
configuration of your local Git repository (inside which you have run
that command), and now this local setting overrides your global one, so
setting `git config --global user.name ...` simply have no visible effect.

"The trick" here is that Git have three levels where it stores its
configuration:

 - system: that's the system-global stuff under /etc on POSIX systems or
   %ProgramFiles%\Git - on Windows.

 - global: that's the configuration global to a particular user, kept
   under their home directory.

 - local: exists in a particular Git repository.

Each "more narrow" layer overrides the previous more wide one.
If a particular setting exists in a local repository, it's used,
otherwise the global config is consulted; failing that the system-wide
config is searched for, and finally the default setting for a parameter
is applied, if any.

Observe:

  $ git config --get-all user.name
  Konstantin Khomoutov
  
  $ git config user.name Yu Liu
  
  $ git config --get-all user.name
  Konstantin Khomoutov
  Yu

To solve the immediate problem you should remove the user.name parameter
from the local config:

  $ git config --unset user.name

Or you may be explicit:

  $ git config --unset --local user.name

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.