# How to clone a GitHub repository


- Install git command line via this [Link](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) instructions 

- Configure your git 
    - Add your user name:
```
git config --global user.name "<username>"
``` 
    - Add email address:
```
git config --global user.email "<email address>"
``` 


- Open your directory of where you want to save repository locally by right clicking folder and opening Git Bash Here
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1625468198002/4Z9hc-fxB.png)

- Clone your repo using the following command replacing with your url you get from your repository online from GitHub, BitBucket, GitLab or any others
```
git clone <url to your repo>
```
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1625468210549/q1OOmnZJF.png)

- Double check repository is cloned by running
```
git status
```

- If your output looks something like this your repository is cloned to your local drive
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1625468705174/VVk31t5ON.png)

Happy Coding :)

Asrin

If this helped you consider buying me a coffee :)

%%[buymecoffee]

%%[amazonads]
