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 Git Basics Merging Merge Conflicts

Github “fatal: remote origin already exists”

What should I do when this occurred? Should I use this command "git remote rm origin" or just push it back again?

Thank you in advance.

It depends what you were trying to do when you got the error

It is saying the repo you are trying to push into from your local repo(i.e your workstation) already exist/has been established on GitHub. Therefore, you don't need to run that command. Try this: git remote add origin {add here the url for that repo from your GitHub account} OR run : git push origin_1 master.