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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![ammarkhan](https://secure.gravatar.com/avatar/5fccd1a1eedc2b29b5aa87bf2fe5172a?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ammarkhan
Front End Web Development Techdegree Student 21,661 PointsIs git on our system is origin or remote?
This is confusing, I cannot understand what is origin or what is remote. So what is origin and what is remote. On my system can i say it is origin as git originated from my system?
![Kris Budhram](https://secure.gravatar.com/avatar/ff1d8e011e692e3765b3c41ec0a181ca?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Kris Budhram
6,080 PointsOrigin an alias to a remote git repository. Typically it's the repository that you cloned from. If you created a local repo with 'git init', there isn't an origin alias.
Compare your output from 'git remote -v'
If you wanted to add a remote repository later, named 'origin' or something else, look at 'git remote add'
1 Answer
![Unsubscribed User](https://secure.gravatar.com/avatar/a84b49b9d37c2721a9c8fb6402fc10e2?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Unsubscribed User
16,354 PointsFor me the reference to 'origin' has always been somewhat a misnomer, though a lot of folks only work with one "Origin" repo server.
I tend to name my references for whatever server/service I am adding that remote for in the remote command.
for instance my bitbucket I use my bb
git remote add mybb {bitbucket/connection/url}
or for my github i use 'mygh'
git remote add mygh {github/connection/url}
then I can push:
git push mybb master
or git push mygh master
![ammarkhan](https://secure.gravatar.com/avatar/5fccd1a1eedc2b29b5aa87bf2fe5172a?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
ammarkhan
Front End Web Development Techdegree Student 21,661 PointsLawrence Francell This seems to be a good way to remember and you are right, 'origin' is too confusing,
Timothy Schmidt
4,806 PointsTimothy Schmidt
4,806 PointsI didn't see anything in the video about this. Are you referring to this command?
git remote add origin path_to_repository
If so,
git remote add
is the command. It configures a connection to a remote repository which is located at path_to_repository.origin
is the name given to the connection. You could name it anything you want, origin is just commonly used in the tutorials so a lot of people end up using it.