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 trialChristopher Cooper
16,697 PointsGit trouble?
Finally had some free time to start learning Git with git-bash and the command line a couple of days ago. Experimented with creating a repository, adding files, then committing those files. I even set up a user name and email; then when I come back today to create a new repository and I get this message. What happened and how can I fix this?
$ git init C:/Program Files/Git/usr/bin/.git: Permission denied
1 Answer
Michael Hulet
47,913 PointsIt seems like you're in a directory that your user doesn't have permission to write to. I'm not a Windows person, but it seems like C:\Program Files
could be a protected directory. Try creating a git repository in a folder that you have write/execute permissions to
Christopher Cooper
16,697 PointsChristopher Cooper
16,697 PointsI downloaded the wrong version plus practicing my git commands caused me to get logged out I guess.