commit时出现please tell me who you are错误

389 views
Skip to first unread message

王少楠

unread,
Dec 6, 2013, 10:17:09 AM12/6/13
to git...@googlegroups.com
我在window下用msysgit。本地创建仓库,已经git initgit config –global user.name”xxx”,git config --global user.email "x...@xxxmail.com" 。添加时未见异常,新建readme文件,git add readme.txt.但是在提交git commit –m “wrote a readme fiel”的时候出现please tell me who you are.打开仓库下的config文件,里边也没有name和email的记录,感觉像是没有添加进去。请问这是什么问题,盼解答,谢谢。

Chunlin Zhang

unread,
Dec 6, 2013, 10:45:06 AM12/6/13
to git...@googlegroups.com
那个是global下的
可以用 git config --global -e 编辑global的文件


2013/12/6 王少楠 <nan...@gmail.com>
我在window下用msysgit。本地创建仓库,已经git initgit config –global user.name”xxx”,git config --global user.email "x...@xxxmail.com" 。添加时未见异常,新建readme文件,git add readme.txt.但是在提交git commit –m “wrote a readme fiel”的时候出现please tell me who you are.打开仓库下的config文件,里边也没有name和email的记录,感觉像是没有添加进去。请问这是什么问题,盼解答,谢谢。

--
您收到此邮件是因为您订阅了 Google 网上论坛的“Git中文用户组”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 git123+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。

Wendal Chen

unread,
Dec 6, 2013, 10:45:37 AM12/6/13
to git...@googlegroups.com
git config --global user.name "xxxxxxxx"
git config --global user.email "xxxxxxxx"

字符不能错,空格也不能错. --global是全局设置,不是单个库的设置. 在你的主目录(例如我的是  C:\Users\Administrator )下有个 .gitconfig 文件, 配置在里面

我的配置

[user]
name = wendal
[push]
default = simple



在 2013年12月6日下午11:17,王少楠 <nan...@gmail.com>写道:
我在window下用msysgit。本地创建仓库,已经git initgit config –global user.name”xxx”,git config --global user.email "x...@xxxmail.com" 。添加时未见异常,新建readme文件,git add readme.txt.但是在提交git commit –m “wrote a readme fiel”的时候出现please tell me who you are.打开仓库下的config文件,里边也没有name和email的记录,感觉像是没有添加进去。请问这是什么问题,盼解答,谢谢。

--
您收到此邮件是因为您订阅了 Google 网上论坛的“Git中文用户组”论坛。
要退订此论坛并停止接收此论坛的电子邮件,请发送电子邮件到 git123+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/groups/opt_out。



--
Wendal Chen
GuangDong China
Reply all
Reply to author
Forward
0 new messages