From 2107d6a8c277a447a20293d5972174879fd05af7 Mon Sep 17 00:00:00 2001 From: Rafsal Rahim <31894153+rafsalrahim@users.noreply.github.com> Date: Sun, 14 Oct 2018 02:38:46 +0530 Subject: [PATCH] added the field "To clone spacific branch" (#18649) --- client/src/pages/guide/english/git/git-clone/index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/pages/guide/english/git/git-clone/index.md b/client/src/pages/guide/english/git/git-clone/index.md index 382470caeb..f9db30050a 100644 --- a/client/src/pages/guide/english/git/git-clone/index.md +++ b/client/src/pages/guide/english/git/git-clone/index.md @@ -49,5 +49,13 @@ After mirroring a repository, you can clone your local mirror from your server. git clone NAME-OF-DIRECTORY-ON-COMPUTER ``` +### To clone a spacific branch + +If you want to clone a spacific branch, you can do that by the following command. + +```shell +git clone URL-OF-REPOSITORY -R branch_name +``` + ### More Information: - Git documentation: [clone](https://git-scm.com/docs/git-clone)