Cloning a repository – User Documentation – GitHub Help

When you create a repository on GitHub, it exists as a remote repository. You can clone your repository to create a local copy on your computer and sync between the two locations.

This procedure assumes you have already created a repository on GitHub, or have an existing repository owned by someone else you'd like to contribute to.

On GitHub, navigate to the main page of the repository.

Note: If the repository is empty, you can manually copy the repository page's URL from your browser and skip to step four.

In the Clone with HTTPs section, click to copy the clone URL for the repository.

Open TerminalTerminalGit Bashthe terminal.

Change the current working directory to the location where you want the cloned directory to be made.

Type git clone, and then paste the URL you copied in Step 2.

Press Enter. Your local clone will be created.

On GitHub, navigate to the main page of the repository.

Under your repository name, click to clone your repository in Desktop. Follow the prompts in GitHub Desktop to complete the clone. For more information, see "Cloning a repository from GitHub to GitHub Desktop."

View post:

Cloning a repository - User Documentation - GitHub Help

Related Posts

Comments are closed.