Git’s local repository and remote repository — confusing concepts

Git is a distributed version control system and it makes Git awesome. Your local repository has exactly the same features and functionality as any other Git repository. So a Git repo on a server is the same as a Git repo on GitHub (granted GitHub adds additional features, but at its core, you’re dealing with Git repositories) which is the same as your coworker’s local repo.

So why is that awesome? Because there is no central repo you have to have access to do your work. You can commit, branch, and party on your own repo on your local machine even without internet access. Then, when you have a connection again, you can push your changes to any other Git repo you have access to. So while most people treat a particular repo as the central repo (repository), that’s a process choice, not a Git requirement.

The point of all that was to state (as others have) that you’re committing your README to your local repo. Then, whenever you choose, you can push changes from your local repo to any other repo. It’s pretty nifty!

Leave a Comment