GIT – How To Clone A Repository ?


How To Clone A Repository ?

Table Of Contents:

  1. What Is GIT Cloning?
  2. How To Clone A Repository?

(1) What Is GIT Cloning ?

  • GIT cloning is the method of making a copy of a target repository.
  •  This target repository can be a remote or a local one.
  • When you are new to an existing project, the first step is to clone the project repository, so that you can work in your local system.

(2) How To Clone A Repository ?

  • Use the below command to clone an entire repository.
git clone <repository URL> 

Example-1: If You Are Using BitBucket

git clone https://praudyoglearning@bitbucket.org/praudyoglearninggmailcom/praudyoglearning.git
  • To clone a specific branch use the below command.
$ git clone -b <Branch name> <Repository URL>  

Leave a Reply

Your email address will not be published. Required fields are marked *