How to Clone GitHub Repository Using the Git Bash

.

How to Clone a git Repository into a Local Machine

How to Clone a GitHub Repository into a Local Machine

git clone 

In git, we use the git clone command to clone the git repository using git bash.


Git Command to Clone GitHub Repository

git clone (GitHub URL)


Follow the steps below to copy any GitHub repo into the local folder

Step 1: Log in to your GitHub account.

Step 2: Click on the Repository that you want to clone into your local Machine.

Step 3: Now, click on the code dropdown

Step 4: Copy the URL 


Step 5: Now open your git bash/Terminal/Command Line

Step 6: Now, go to the directory where you’d like your cloned directory to appear. Input the CD and add the folder location. (as shown in the figure)




Step 7: Now use the git Command and paste the URL

Command: git clone (Repository URL)


Step 8: Press the Enter Button on the Keyboard.


Wow!!! You have successfully cloned the GitHub Repository from GitHub to your local machine using the command line. 


Hope!!! The above Tutorial on How to Clone the GitHub Repository into a local Machine is helpful for you...

Team,

QA acharya

Post a Comment

0 Comments