diff options
author | Ayush <darkceil7@live.com> | 2015-10-06 00:46:53 +0530 |
---|---|---|
committer | Ayush <darkceil7@live.com> | 2015-10-06 00:47:10 +0530 |
commit | 037ff22ef63c5f37b6657e806695bb52f46a7ec3 (patch) | |
tree | 61b7385d24735fdf7def4fdb98da76c76efc6c6e /git.html.markdown | |
parent | 7b7ce666b66e897c115879d505104330923919ec (diff) |
Git: added more clone options
Diffstat (limited to 'git.html.markdown')
-rw-r--r-- | git.html.markdown | 4 |
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 |