Clone: Downloading a full copy of a remote repository, including its complete history and branches, to your own computer, so you can work on it locally.

Example

On your first day, your mentor shares the repository URL. You run git clone with that URL, and a folder with the whole project and its history appears on your laptop.

How to Clone

  1. Copy the repository URL from GitHub, GitLab, Bitbucket, or Azure Repos (HTTPS or SSH).
  2. Run git clone followed by the URL in the folder where you keep projects.
  3. Move into the new folder and follow the README to set the project up.

Clone vs Fork vs Download ZIP

What you getWhen to use it
CloneA local copy with full Git history, linked to the remoteWorking on a team repository you have access to
ForkYour own copy on GitHub, which you then cloneContributing to someone else's project, such as open source
Download ZIPJust the files, with no Git historyOnly reading the code

Common Clone Problems

  • Permission denied: you don't have access yet, or your SSH key isn't set up. Ask for access.
  • Authentication failed on HTTPS: most services need a personal access token instead of your password.
  • Very large repository: cloning can take a while on slow internet; be patient or ask about a shallow clone.

Related terms

  • Repository: what you clone.
  • Fork: your own server-side copy of someone else's repository.
  • Pull: how you get new changes after cloning.
  • Git: the tool that performs the clone.

Previous term: CI/CD  |  Next term: Cloud Computing

Related guides

Frequently asked questions

What does git clone do?

It downloads a full copy of a remote repository, including its history and branches, to your computer.

What is the difference between clone and fork?

A clone is a local copy on your computer. A fork is your own copy of someone else's repository on GitHub, which you can then clone.

Do I need to clone again to get new changes?

No. Use git pull inside the cloned folder to get the latest changes.

Should I use HTTPS or SSH to clone?

Either works. SSH avoids typing credentials each time once set up; HTTPS is simpler to start with.

Explore more internship terms

The IT Internship Glossary explains 199 terms you will hear before and during your internship, with simple definitions and real examples.

Browse all 199 terms
Dhaivat Ajwaliya

About the author

Dhaivat Ajwaliya

Dhaivat has 16+ years of experience in the IT industry, working on AI and cloud technologies, project delivery, and engineering leadership. He has interviewed and mentored many interns, wrote The Lost Intern, and runs the non-commercial Career Impact Initiative, mentoring students for free.