You push up to a remote repository but why is it different?
By default Git is completely local to your computer. You can optionally have remote copies of the repository (either on a central server or service — like Github — or on a co-workers computer).
To get your copy of the repository up to a remote server you use the command git-push
. If you want to retrieve others’ changes to the repository you use git-pull
.
A Remote Repository in Git is a special type of repository in that it doesn’t have a Working Tree. This is different than your local repository, which has your project files and then a hidden .git
directory.
You can host your own Git remote repository or use one the popular online services, like Github, Gitlab, or Bitbucket.