I'm trying to set git config values but I keep getting could not lock config file
error whenever I try to update them. I've looked around on Stack Overflow and followed the advice to try and remove .gitconfig so that I can recreate it. However, I then get the error No such file or directory
.
Does anyone know why this might be happening?
MacBook-Pro-10:~ Chris$ git config --global user.name "Chris Marshall"
error: could not lock config file /Users/Chris/.gitconfig: File exists
MacBook-Pro-10:~ Chris$ rm ~/.gitconfig
rm: /Users/Chris/.gitconfig: No such file or directory