Can't Commit Files to Github: warning: unable to access '/Users/me/.config/git/attributes': Permission denied

Keywords: xcode git


I am trying to commit to my local repository but it keeps saying "The working copy “Project” failed to commit files. warning: unable to access '/Users/me/.config/git/attributes': Permission denied"

I tried this Unable to access 'git/attributes' It worked for a while but after about an hour of working on my project the error comes back.

I don't know if this is related but some storyboard files are randomly marked for Deletion (with the D beside their file name) when trying to commit.