Information Technology Reference
In-Depth Information
Note I have tested all the commands presented in this chapter and in the topic on
two platforms: Linux and Windows. My aim was to provide one set of instructions that
will work regardless of your platform. To achieve this goal, file system operations are
performed with Linux commands, such as ls and rm . Moreover, the listings start with
$ and paths use / as separator—suggesting that they are prepared for Linux. However,
do not worry if you are using Windows. Just use the bash command interpreter distrib-
uted with git and all the commands will work fine.
If you are using a Unix-like system that is different than Linux, some commands
(i.e., du or echo ) can use different switches than those that are presented in this topic.
Therefore, you will need to customize these commands.
2-1. Cloning a repository hosted on
Github
Problem
You want to get a local copy of a jQuery repository.
Solution
Start the command line and create the git-recipes/ and git-recipes/
02-01/ directories:
$ cd /some/where/on/your/system
$ mkdir git-recipes
$ cd git-recipes
$ mkdir 02-01
Change the current directory to 02-01/ :
$ cd 02-01
Search WWH ::




Custom Search