summaryrefslogtreecommitdiffhomepage
path: root/git.html.markdown
diff options
context:
space:
mode:
authorAyush <darkceil7@live.com>2015-10-06 00:46:53 +0530
committerAyush <darkceil7@live.com>2015-10-06 00:47:10 +0530
commit037ff22ef63c5f37b6657e806695bb52f46a7ec3 (patch)
tree61b7385d24735fdf7def4fdb98da76c76efc6c6e /git.html.markdown
parent7b7ce666b66e897c115879d505104330923919ec (diff)
Git: added more clone options
Diffstat (limited to 'git.html.markdown')
-rw-r--r--git.html.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/git.html.markdown b/git.html.markdown
index c32d9c5d..66b890c1 100644
--- a/git.html.markdown
+++ b/git.html.markdown
@@ -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