Permission error message help please

warning: unable to access ‘/Users/me/.config/git/ignore’: Permission denied
warning: unable to access ‘/Users/me/.config/git/attributes’: Permission denied
warning: unable to access ‘/Users/me/.config/git/attributes’: Permission denied
warning: unable to access ‘/Users/me/.config/git/ignore’: Permission denied
On branch gh-pages
Your branch is up to date with ‘origin/gh-pages’.

Hi there! :wave: Welcome to the Community!

This looks like a permissions error on your local machine. Your user account doesn’t have permission to access some of the files Git needs.

This stack overflow answer should point you in the right direction!

Hello!

I tried this but it unfortunately isn’t solving the problem. I’m still getting this error from git status:

My-MacBook-Pro: class-test myusername$ git status
warning: unable to access ‘/Users/myusername/.config/git/ignore’: Permission denied
On branch gh-pages
Your branch is up to date with ‘origin/gh-pages’.

Thank you!

I used this command:

sudo chown -R USER:(id -gn $USER) /Users/myusername/.config

and I think that fixed the problem.

2 Likes

I’m glad you got it working!

1 Like