15:06 VcsException Couldn't set user.name and user.email: error: could not lock config file Z://.gitconfig: Permission denied during executing git -c core.quotepath=false config --global user.name amirzayev 

Z: // is a hard disk at work, why does Git want to go where to change it and what for?

  • What OS is used? Check the owner of the .gitconfig file. - Ares
  • @AresGod Yes, in any case, you should not keep your config on the ball. :) - Nick Volynkin
  • @NickVolynkin, and if they need something, the commits were from 1 person?) Although it breaks the idea of ​​Git :) - Ares
  • @ Nick Volynkin, the point is that the config is not there. I do not understand why android studio is trying to commit there and is looking for a config there. + to this, when I open Git bush, it first connects to Z: - Arzu Mirzayev
  • @AresGod I don’t even understand in what situation git can search for configs on the Z drive. - Nick Volynkin

1 answer 1

Some program using the git -c core.quotepath=false config --global user.name amirzayev tries to configure git. Probably, there is no configuration file at Z://.gitconfig . This is very logical - why should your configuration be on a shared disk?

The user.name and user.email are required to sign commits with your name and email. Without them, you cannot create a commit, that is, you will not be able to fully work with Git.

Set up Git yourself, there is a chance that then a stupid program will not do it for you. Just substitute your real email address:

 git config --global user.name Arzu Mirzayev git config --global user.email "amirzayev@mycompany.tld" 
  • @ user.name and user.email I added. Still the same mistake - Arzu Mirzayev
  • @ArzuMirzayev and where do you get this error? - Nick Volynkin
  • @ArzuMirzayev and in response to what your actions? - Nick Volynkin
  • commit and push in android studio - Arzu Mirzayev
  • one
    @ArzuMirzayev seems to have a studio commanding git through the command shell, which thinks your home directory is Z. Dig in the studio settings. - Nick Volynkin