Notice that, as you say in the beginning, Git is a distributed VCS, and not a centralized one.
So, there is no concept of a single remote repo, but instead you have a single local repo (the one you're working in), and many remotes, and they are all the same, from Git perspective.
So, you can have a remote on GitHub, one on GitLab, one on your own desktop at home, and one on your colleague's computer, and for as long as they are reachable you can push on, and pull from, any of them.
True that often there is a single instance on an hosted server, and everyone connects to that one, but this is not a Git concept, just a standard practice.
Thanks for the comment!
As you point out, with Git, remote repository servers can be created without having to rely on a hosting service like github. Official website
I wrote this article this way because I wanted to emphasize my point about managing versions in a distributed manner.
Thanks for the very great feedback!!!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Notice that, as you say in the beginning, Git is a distributed VCS, and not a centralized one.
So, there is no concept of a single remote repo, but instead you have a single local repo (the one you're working in), and many remotes, and they are all the same, from Git perspective.
So, you can have a remote on GitHub, one on GitLab, one on your own desktop at home, and one on your colleague's computer, and for as long as they are reachable you can push on, and pull from, any of them.
True that often there is a single instance on an hosted server, and everyone connects to that one, but this is not a Git concept, just a standard practice.
Thanks for the comment!
As you point out, with Git, remote repository servers can be created without having to rely on a hosting service like github.
Official website
I wrote this article this way because I wanted to emphasize my point about managing versions in a distributed manner.
Thanks for the very great feedback!!!