What is a remote and what does `origin` mean?
BeginnerConceptConflicts, remotes, fetch, pull and push
Answer
A remote is a named URL stored in config. origin is only the default name given by git clone, with no special meaning. You can add several, such as upstream for the original repo when working from a fork.
git remote -v
git remote add upstream https://github.com/org/repo.git
git remote set-url origin [email protected]:me/repo.git
More on Conflicts, remotes, fetch, pull and push
What do conflict markers look like and how do you resolve them?BeginnerWhat is `merge.conflictStyle=zdiff3` and why use it?IntermediateHow do you quickly take one side's version for a conflicted file?IntermediateWhat are stages 1, 2 and 3 in the index during a conflict?AdvancedHow do you see what a merge conflict is about before resolving?IntermediateWhat is the difference between `git fetch` and `git pull`?Beginner