Creating a repo
In this section, we’ll cover the essential steps for creating a GitHub repository from an existing remote repository, as well as creating a local repository without an existing remote repository. Then, we will look at linking a local and remote repository. Let’s begin!
Cloning an existing remote repository
When working as a part of a project team, a central repository has likely already been created. If you are working with a project that already exists, use the clone
command to make a local copy of the repository. Cloning allows you to have a local copy of the project on your own computer, where you can work on it offline, experiment with it, and contribute your changes back to the project if you wish.
Here’s how to clone a repository:
- Retrieve a copy of the remote repository URL. If GitHub is your remote repository, then this can be found under the green Code button, currently on the Code tab of a project.
- Open the terminal...