Interview Prep/Git & GitHub/Conflicts, remotes, fetch, pull and push

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
All Git & GitHub questions Roadmap: Git & GitHub

More on Conflicts, remotes, fetch, pull and push