Home
Sign Up
Sign In
V2EX
›
问与答
在用 git 工具登录的时候提示错误
Roses
·
Feb 13, 2015
· 5276 views
This topic created in 4126 days ago, the information mentioned may be changed or developed.
我是菜鸟,刚接触git,在登录的时候提示:error: key does not contain a section: user
如图:
git
contain
登录
6 replies
1
exch4nge
Feb 13, 2015
既然点进来了,还是回复下吧。
去掉user与.name之间的空格。
2
Roses
OP
Feb 13, 2015
@
exch4nge
去掉之后就没反应了!
3
exch4nge
Feb 13, 2015
@
Roses
那就是成功设置了全局的用户名,会在提交的时候记录你的名字(还有邮箱)。
这条命令不是什么登录命令,是设置git的全局用户名。
劝你还是找找相关文章先看,你这问的也太离谱了。
4
Roses
OP
Feb 13, 2015
1
@
exch4nge
抱歉,我是菜鸟了~!这个如何解决呢,拜谢大侠~!
5
exch4nge
Feb 13, 2015
手残,点错成感谢了。
@
Roses
我上面不是说了么,这不是登录命令。
去掉之后没反应就是对了,就是成功设置了名字。
设置名字和邮箱才能commit之类的。
我都不知道你要干嘛,你是不是把git跟github弄混了?git就是个分布式版本管理工具而已,哪来什么登录。
6
Roses
OP
Feb 14, 2015
@
exch4nge
嗯 是我搞混了,也提错了,我想把github上的代码库同步到本地来修改!
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1044 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 5414617a · 29ms ·
UTC 18:52
·
PVG 02:52
·
LAX 11:52
·
JFK 14:52
♥ Do have faith in what you're doing.
❯