when I try to config Git I receive the following error:
$ git config --global user.name "John Smith" error: could not lock config file /Users/John/.gitconfig: No such file or directory My root directory is completely missing a .gitconfig file. When I try to make a new one I receive this error:
$ touch ~/.gitconfig touch: /Users/John/.gitconfig: No such file or directory My git's location:
$ which git /usr/local/git/bin/git I've tried reinstalling Git several times (running OSX Yosemite) and I'm still having the same issue. I also cannot locate any .gitconfig.lock files, as mentioned in some posts regarding this issue.
touch ~/.gitconfigfails, your problem has nothing to do with git. Is there any file there? Do other filenames work?.gitconfig@at my root directory - what does the @ mean? I cannot view this file@suffix is something various programs add to indicate that this is a symbolic link. Apparently it's a symlink to a non-existent file. Find out where it was linked, and what happened to wherever-that-was, if you want to get the previous contents back.git configcommand again.