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

Ruby

I was denied when doing 'git clone'

[Build a Simple Ruby on Rails Application Frontend Development Cloning the Project]

I created a new folder called 'Code' and executed 'git init' I got permission denied when I tried to clone!

c:\Code>git clone git@github.com:geekerati/treebook.git Cloning into 'treebook'... Permission denied (publickey).

What is the soloution? :( fatal: Could not read from remote repository.

2 Answers

Dongju Seo - In the video Jim Hoskins has already setup his git with an SSH key, like Oliver Hough referenced.

However that's the old way of doing things on github, as they now recommend using the https method.

The easy way to clone a repo is to use:

git clone https://github.com/jasonseifer/treebook.git

have you generated a public key and added it to your profile?

https://help.github.com/articles/generating-ssh-keys