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
Rizwan Ahmed6,578 Points
Hi , getting this error message while trying to connect remote repository
I have already added the remote origin $ git remote add origin email@example.com:Rizwan-Ahmed-Surhio/my_really_cool_project.git
Rizwan@Rizwan-PC MINGW64 ~/github/my_really_cool_project (master) $ git push -u origin master firstname.lastname@example.org: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Rizwan@Rizwan-PC MINGW64 ~/github/my_really_cool_project (master) $
Andrey Misikhin16,529 Points
You must do this steps in console from your project folder:
- git init
- git add <your file>
- git commit -m "first commit"
- git remote add origin https://github.com/<your github nick>/<your repo>.git
- git push -u origin master
I checked this GitHub instruction on my public repository and it works well.