Linked Questions
17 questions linked to/from What is "origin" in Git?
92
votes
5
answers
53k
views
What is the difference between 'origin' and 'remote' in git commands? [duplicate]
In git lingo, are origin and remote the same thing? Or does origin refer to the local directory?
In the case of git push -u origin master: Which of the following interpretation is correct?
"push ...
5832
votes
21
answers
6.8m
views
How do I push a new local branch to a remote Git repository and track it too?
How do I:
Create a local branch from another branch (via git branch or git checkout -b).
Push the local branch
to the remote repository (i.e. publish), but make it
trackable so that git pull and git ...
900
votes
17
answers
471k
views
How can I pull/push from multiple remote locations?
The short: is there a way to have a git repo push to and pull from a list of remote repos (rather than a single "origin")?
The long: I often have a situation when I'm developing an app in multiple ...
1080
votes
6
answers
405k
views
Definition of "downstream" and "upstream"
I've started playing with Git and have come across the terms "upstream" and "downstream". I've seen these before but never understood them fully. What do these terms mean in the context of SCMs (...
235
votes
7
answers
151k
views
Git branching: master vs. origin/master vs. remotes/origin/master
I think I'm on the right track to understand the basic concepts of git.
I've already set up and cloned a remote repository. I also created a server side empty repository, and linked my local ...
263
votes
4
answers
358k
views
Why does Git tell me "No such remote 'origin'" when I try to push to origin?
I am very new to Git; I only recently created a GitHub account.
I've just tried to push my very first repository (a sample project), but I'm getting the following error:
No such remote 'origin'
I ...
112
votes
8
answers
64k
views
What's the meaning of 'origin' in 'git push origin master'
When I run:
git push origin master
...what is the meaning of origin in this context?
42
votes
3
answers
14k
views
git push NOT current branch to remote
Is there a way in git bare repository to push a branch that is not in HEAD right now?
For example i have two branches:
$ git branch
* master
another
And i have two remotes set: origin and another.
...
5
votes
2
answers
26k
views
what is the origin branch in git? how to use it?
I am a newbie of git, I try to understand what is origin and origin/master in git, what does the origin means? where it is? and someone says it is remote branch, what is the remote branch?
6
votes
4
answers
8k
views
How to tell if a git repo is a mirror?
I'm trying to get my head around git mirroring. Given a working copy, how do I determine whether it is a mirror (or is mirroring) another repository?
Cheers.
4
votes
3
answers
7k
views
What is the difference between "git remote add origin", " set-url origin" and config...?
There seem to be at least 3 ways to do what sounds as the same thing.
# 1. git remote add origin https://[email protected]/x/y.git
# 2. git remote set-url origin ssh://[email protected]/x/y.git
# 3. ...
1
vote
2
answers
2k
views
Confusion over origin, master and "branch" names with remote repository
Git is great and I've been using it for a few years now as a basic user, but some things still puzzle me about the naming used. I'm hoping that someone can help explain what I'm doing in simple terms.
...
1
vote
2
answers
551
views
Is 'remote' a mirror or a reference of external repository?
Assumming the convention "origin", "master".
My local repository has a "master" branch.
Is "origin/master" a mirror or a reference?
Are there two types of remote repository in git?
When I do a git ...
0
votes
2
answers
431
views
How can origin be a pointer and branch at the same time?
I am currently learning about Git, and have found many, in my opinion, conflicting definitions of what origin are.
My current understanding of origin based on my tutorial, is that every time a file ...
1
vote
2
answers
135
views
What is the difference between 'origin' and the newly created repository in github?
What exactly is 'origin' when we say
git remote add origin urlOfNewRepository, or
git push add origin master?
Is it the name of the remote repository? If it is then what is it when we create a ...