The following command is used: git clone -b 6. To clone a specific branch, you need to use the command -b to specify the branch. In this way, a clone of the target repository can be made.Ĭlone a specific branch from the repository.Ī very useful feature of the git clone is that it allows cloning a specific branch of the target repository without having to clone the entire repository. Open a command line and use the command: git clone.An option named Clone with HTTPS appears.Under the repo name, click on the tab Clone or Download.Open Github and navigate to the target repository which needs to be cloned.Using the command, a copy of the original repository is created. The following image shows an illustration of the git clone command. Git clone is a command which is used to clone or copy a target repository. Now since Git is installed, open command line and configure your username and user email.Open the installer and follow the instructions.
$ git config -global user.email Git on Mac OS. $ git config -global user.name "user_name" Configure your username and email using the following command:.