Git Cloning from a Local Repository

Last updated:

Clone repository file repo.git which is located in another directory into project directory (it is created if it doesn't exist)

$ git clone --local file:///home/path/to/repo.git project

Note that, if your project is in a directory (with a .git directory within), you can also use the directory name as the pointer to the repository:

$ git clone --local file:///path/to/repo/directory project

Dialogue & Discussion