I currently use Sourcetree as a tool for version control. When I want to clone existed repository, there are two repositories which are local repository and remote repository. Just wondering which one is the best option to clone the repository.
In SourceTree terms:
A local repository is one that already exists or is already stored on your machine. It can be a repository that you already cloned before or was cloned outside of SourceTree (ex. using git
commands on the command line). You don't clone local repositories, you just need to add their folders to the SourceTree interface, as indicated in the UI to "drag & drop repository folders" into SourceTree, so that they will appear in the UI.
A remote repository is one that exists somewhere else, in Github, Gitlab, Bitbucket, or in any other server that hosts Git repositories. This is the one you need to clone into your own machine, where it can now become a local copy of the remote repository.