search

Home  >  Q&A  >  body text

android-studio - When android studio uses git commit and enters the user name and email address, the message "can't set user.name" appears?

When Android Studio uses git commit, it prompts me to enter my user name and email. After I confirm the input, it says 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

I used the git command line to set user.name and email address

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

Still not solved the above problem

漂亮男人漂亮男人2792 days ago591

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-02 09:44:14

    ... It seems to be a problem with English proficiency...
    Couldn't set user.name and user.email: error: could not create parent
    directory of C:WINDOWSsystem32configsystemprofile/.gitconfig

    Unable to create superior folder
    C:WINDOWSsystem32configsystemprofile/.gitconfig

    reply
    0
  • Cancelreply