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

General Discussion

Samantha Hill
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Samantha Hill
Front End Web Development Techdegree Graduate 20,455 Points

Can't publish repo to Github

So I just finished the Profile Project and I am trying to push my repo to Github but an error message pops up that says Authentication Failed: You may not have permission to access portfolio_update_v1. Check Preferences to make sure you're still logged in.

4 Answers

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Hi there. That error message is a little vain, my best guess is that you've not yet uploaded the local SSH key to your github account.

Please consult the Github help page, especially the contents under Bootcamp & Setup categories, to properly setup the git and Github account, and then this page Adding an existing project to GitHub using the command line on how to push the repo to Github.

If this is too much work, Github for Desktop is always an option at making it dead simple to push any repo to Github using a GUI interface.

Samantha Hill
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Samantha Hill
Front End Web Development Techdegree Graduate 20,455 Points

Thank you. I am using Githubfor desktop. I think the problem is that I have a clone of Team Treehouse's repository and I'm trying to push my changes into it but I don't have permission.

William Li
William Li
Courses Plus Student 26,868 Points

Correct, you don't have permission to push change to Treehouse's Github repos.

What you can do is to fork that repo into your Github account, forking in Github is essentially like making your own copy of the whole repo, and you have the full permission to push or pull from the forked repo.

Colin Marshall
Colin Marshall
32,861 Points

Building on what William Li said, I would do the following:

  • Remove the remote origin that points to Treehouse's Github repo from your local repo
  • Fork the Treehouse repo on Github
  • Add a remote called "origin" to your local repo that points to your fork on Github
  • Push the local repo to the new origin based on your fork
Colin Marshall
Colin Marshall
32,861 Points

What course are you on? If you click the ask a question button from any video, challenge, or quiz page then your question will be tied to it so we can all see where you are at. Too late for that now though, so please provide a link. Thanks!

Colin Marshall
Colin Marshall
32,861 Points

Thanks for the link. The videos didn't explain any of this because they were made under the assumption that the project you are going to put on Github was never on Github in the first place. Since your project started as a clone, it was tied directly to the Github repo you cloned it from.

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Sorry for the confusion Samantha Hill

The files we originally had online already were associated with a Git repo (as you found out :(

We've updated them, so others shouldn't have this problem anymore.