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
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.
It turned out to be an odd permission issue between the .gitconfig
file that Github for Mac created with root privileges and Tower wasn't able to access.
A simple change of ownership privileges fixed the problem. Ownership can be changed like so:
sudo chown -R username [file|directory]
Explanation:
sudo
- grant root privilegeschown
- changes the ownership-R
- for recursive changing of filesusername
- username of new owner[file|directory]
- file or directory for change to occur (if directory is specified it's going to recursively change all the files inside)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With