Home > OS >  Why the .gitconfig always refer to /emacs?
Why the .gitconfig always refer to /emacs?

Time:09-26

I'm new to git and I'm trying to upload my local directory to my Github. However, when I'm asked to set my account's default identity

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

my terminal keeps giving me error:

error: could not lock config file C:/Users/marun/emacs/.gitconfig: No such file or directory

I downloaded emacs before but I deleted it since I seldom used it. How can I solve the problem? Thanks!

CodePudding user response:

C:/Users/marun/emacs - that is probably set as you current home directory.

do the following to verify the theory.

echo $HOME

if it is the case, you need to reset your home directory: how to

  • Related