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!

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

Development Tools Git Basics Working With Remote Repositories Cloning

Jaspal Singh
Jaspal Singh
13,525 Points

Git clone - Error message of please make sure of correct access rights

Hi whenever i try to clone one of the repository through git bash its is showing me the following message:- fatal: could not read from remote repository. make sure you have the correct access rights and the repository exists.

Pls, help.


2 Answers

Jordan Powell
Jordan Powell
Courses Plus Student 5,410 Points

Make sure you are initializing the current directory where you want to clone the repo to before trying to clone it. Hint. git init

Nikos Tzouvelekis
Nikos Tzouvelekis
8,155 Points

if you try to do that from git bash at windows then don't work ... i do this from windows command prompt ... you can execute this command from windows command line and then continue from git bash :)