简体   繁体   中英

Permission denied .config/git/attributes error when trying to push to github

Trying to push git files to github. It seems to add and commit files okay, but when I push I get this error. Not sure what is happening. I have done the sudo ch 755 command and am getting no such directory. I am very new to coding and am unclear on what is happening. I am on a mac os big sure. unable to access '/Users/lauraroblee/.config/git/attributes': Permission denied

I think this might answer your question:

tldr: sudo chown -R $(whoami).config but I would recommend reading the full answer first to see if this is the same problem

If guess you mean you did chmod 755, that changes the permissions for the file (who gets to read, write or execute it) In this case you want to change the ownership of the file, basically so the computer knows you are the owner of the file so you have the permission to access it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM