Information Technology Reference
In-Depth Information
Figure 2-4
.
The contents of the git-recipes/02-03/ directory after a succesfull clone
How It Works
The Git clone command accepts both a URL and a local path that points to the reposit-
ory. Thus, you can clone a local repository by passing a path instead of a URL to the
command.
2-4. Copying a local repository
Problem
You want to clone the repository
git-recipes/02-03/
that you created in Recipe
2-3. This time, instead of using a
git clone
you want to use a standard
cp
com-
mand with a -R flag.
Solution