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 Working With Remote Repositories GitHub

fredyrosales
fredyrosales
10,572 Points

fatal: remote origin already exists.

git remote add origin https://github.com/Fredyjs007/my_first_repository.git

when i add that to my command line in the terminal i get that error.

1 Answer

Seth Kroger
Seth Kroger
56,414 Points

It means pretty much what it says, the remote origin already exists, ie. you've already set it up before. You can type git remote -v to see what/where remotes are set. If you made a mistake before you can type git remote rm origin to clear it out and try again.

fredyrosales
fredyrosales
10,572 Points

Thanks dude! Not only did you solve my problem but you also made me see my mistake.