Information Technology Reference
In-Depth Information
2-3. Cloning a local repository
Problem
You want to clone a repository git-recipes/02-01/jquery/ that you created
in Recipe 2-1, and you prefer to store a new clone directly under git-recipes/
02-03/ without an additional jquery/ directory.
Solution
Go to your git-recipes/ directory:
$ cd git-recipes
Then you need to execute the command shown in Listing 2-3 .
Listing 2-3. The command that clones a local repository
$ git clone 02-01/jquery 02-03
After the using the command shown in Listing 2-3 , the directory git-recipes/
02-03/ will contain the files as shown in Figure 2-4 .
 
 
 
Search WWH ::




Custom Search