Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Branches, Merging and More

Error trying to connect Git to terminal

Hi,

When I try to run this on terminal

xcrun git config --global user.name 'TosyPitarz'

it gives me an error stating

error: could not write config file /Users/admin/.gitconfig: Permission denied

Does anyone know a walkthrough to this? Thanks

1 Answer

Hello, Tosin.

Even though I can't provide a quick fix, I'd recommend a google search or watching the complete GitHub course, which is available at Treehouse.

Thanks Gabriel! :) I found the solution a month ago by using sudo.