Local and Remote Repositories
If you’ve been reading my blogs, it is likely you’ve come across the terms “local” and “remote” repositories. These two repositories only have a subtle difference. Nonetheless, they are still different from one another. And in this web tutorial, you will learn the key difference between these two repositories.
What is a local repository?
A local repository is a repository where you can commit all files relating to a project there. This is found within your device. Whether it is a laptop or computer. Usually software developers refer to their devices as their “local machine”. Thus the term “local repository”.
How are local repositories made?
Local repositories are made when you clone remote repositories to a file path enabled with VCS commands. For example, I setup my VCS to enable
C:\Users\paris\GitRepository with Git commands. Then I create and clone my remote repositories to this file path to create local repositories.
What are remote repositories?
Remote repositories are found within a cloud. Meaning, these are repositories that are hosted online. Here you are able to manage all the versions of your files, commit histories, pull requests and so on.
How else are they different?
They differ from each other not only of where they are placed but by the different actions you can perform in a repository.
In a local repository, you are able to commit, merge, rebase and create branches. While in a remote repository, you are able to manage pull requests, create issues, merge branches, view commit histories and more.