To clone a GitHub repository, follow these steps:
- Go to the repository you want to clone.
- Click on the green 'Code' button.
- Copy the HTTPS URL by clicking the copy icon.
- Use the git clone and navigate to the directory where you want to clone the repository.