Trouble setting up Tower with my GitHub Account - error: could not lock config file

joshferrara picture joshferrara · Apr 26, 2012 · Viewed 35.5k times · Source

I've been using the GitHub for Mac app but on the suggestion of a friend, decided to give Tower a shot since it can also handle Beanstalk accounts as well.

After installing the trial and putting in my GitHub username and password, I'm given this error:

error: could not lock config file /Users/joshferrara/.gitconfig: Permission denied

I was just curious if anyone knows what's causing this or if it has any relevance to me using Tower. Any help is greatly appreciated!


Permissions on the file:

-rw-rw-rw- 1 joshferrara staff 130 Nov 22 17:14 /Users/joshferrara/.gitconfig

Permissions on the parent directory:

drwxr-xr-x 74 501 staff 2516 Apr 26 14:46 /Users/joshferrara

Answer

DolphinJava picture DolphinJava · Oct 1, 2014

I was facing the same issue. I renamed my .gitconfig file to "xyz.gitconfig" And I found that git created a new .gitconfig file. I was not facing the error anymore.