Git: added more clone options

This commit is contained in:
Ayush 2015-10-06 00:46:53 +05:30
parent 7b7ce666b6
commit 037ff22ef6

View File

@ -232,6 +232,10 @@ to a remote branch.
```bash
# Clone learnxinyminutes-docs
$ git clone https://github.com/adambard/learnxinyminutes-docs.git
# shallow clone - faster cloning that pulls only latest snapshot
$ git clone --depth 1 https://github.com/adambard/learnxinyminutes-docs.git
# clone only a specific branch
$ git clone -b master-cn https://github.com/adambard/learnxinyminutes-docs.git --single-branch
```
### commit