V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Roses
V2EX  ›  问与答

在用 git 工具登录的时候提示错误

  •  
  •   Roses · Feb 13, 2015 · 5221 views
    This topic created in 4103 days ago, the information mentioned may be changed or developed.
    我是菜鸟,刚接触git,在登录的时候提示:error: key does not contain a section: user
    如图:
    
    exch4nge
        1
    exch4nge  
       Feb 13, 2015
    既然点进来了,还是回复下吧。
    去掉user与.name之间的空格。
    Roses
        2
    Roses  
    OP
       Feb 13, 2015
    @exch4nge 去掉之后就没反应了!
    exch4nge
        3
    exch4nge  
       Feb 13, 2015
    @Roses 那就是成功设置了全局的用户名,会在提交的时候记录你的名字(还有邮箱)。

    这条命令不是什么登录命令,是设置git的全局用户名。

    劝你还是找找相关文章先看,你这问的也太离谱了。
    Roses
        4
    Roses  
    OP
       Feb 13, 2015   ❤️ 1
    @exch4nge 抱歉,我是菜鸟了~!这个如何解决呢,拜谢大侠~!
    exch4nge
        5
    exch4nge  
       Feb 13, 2015
    手残,点错成感谢了。

    @Roses 我上面不是说了么,这不是登录命令。
    去掉之后没反应就是对了,就是成功设置了名字。
    设置名字和邮箱才能commit之类的。

    我都不知道你要干嘛,你是不是把git跟github弄混了?git就是个分布式版本管理工具而已,哪来什么登录。
    Roses
        6
    Roses  
    OP
       Feb 14, 2015
    @exch4nge 嗯 是我搞混了,也提错了,我想把github上的代码库同步到本地来修改!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4620 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    ♥ Do have faith in what you're doing.