android studio使用git commit时输入用户名和邮箱显示can't set user.name?

android studio使用git commit时提示我输入用户名和邮箱,输入确定后显示can't set user.name and user.email
图片描述


Couldn't set user.name and user.email: error: could not create parent 
directory of C:\WINDOWS\system32\config\systemprofile/.gitconfig

我曾使用git命令行的方式设置user.name和邮箱

$ git config --global user.name"名字"
$ git config --global user.email 邮箱

还是没有解决上述问题

阅读 13.5k
2 个回答

…… 感觉是英文水平问题 ……
Couldn't set user.name and user.email: error: could not create parent
directory of C:WINDOWSsystem32configsystemprofile/.gitconfig

不能建立上级文件夹
C:WINDOWSsystem32configsystemprofile/.gitconfig

我也遇到了这个问题,没有C盘的读写权限。

第一步:你通过cmd的方式设置好

$ git config --global user.name"名字"
$ git config --global user.email 邮箱

第二步:使用 AS提交的时候,
需要你输入用户名 和 邮箱,下面有个选择框不要勾选 提交。

我就是这样解决的

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题