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

Development Tools GitHub Basics Working By Yourself Push Your Project to GitHub

fatal: Authentication failed

It won't let me push up to master : invalid username/password. But this is the legit username and password for my GH account.

Why is the URL https://username@github.com, shouldn't it be https://github.com/username/?

1 Answer

Alejandro Finy
Alejandro Finy
3,279 Points

I did a couple of steps that maybe can help you. It worked for me. • Remove two-factor authentication from your GitHub account. • Change password don't add or remove special characters. • Check if you're still on the same directory "Treehouse" • Start the process again or just "git push origin master" • Once you're done activate the two-factor auth to secure the account .