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 trialOssian MacDonald
2,175 PointsTrouble Pushing to Git- Can't find respository
Hi All,
I am wrapping up the 'adding interactivity' section of the treebook project. I am having trouble pushing the changes I've made to the front end back to git hub. I didn't do a clone, because I am only working with myself. So, I am not sure if the pushing process will be the same as in the instruction video. In any case, when I go to push the files back up, I can't find the repository. I called the repository 'treebook'. In the instructions they have us push to origin. Github says that the repository doesn't exist. I'm I doing something blatantly wrong?
Ossian-MacDonalds-MacBook-Pro:treebook Ossian$ Ossian-MacDonalds-MacBook-Pro:treebook Ossian$ git push -u origin master fatal: 'origin' does not appear to be a git repository fatal: The remote end hung up unexpectedly Ossian-MacDonalds-MacBook-Pro:treebook Ossian$ git push -u origin master fatal: 'origin' does not appear to be a git repository fatal: The remote end hung up unexpectedly Ossian-MacDonalds-MacBook-Pro:treebook Ossian$ git push -u treebook master fatal: 'treebook' does not appear to be a git repository fatal: The remote end hung up unexpectedly Ossian-MacDonalds-MacBook-Pro:treebook Ossian$
Cheers!
2 Answers
Stone Preston
42,016 PointsMaybe. you have to provide the path to your repository first using this command
git remote add origin https://github.com/yourusername/test.git
of course you have to edit the path to match your username and your repository name
THEN you call the push command
git push -u origin master
But after you set the origin and push the first time every time after that you just use
git push
James Barnett
39,199 PointsYou might find git - the simple guide helpful