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
- Copy the repository URL from GitHub, GitLab, Bitbucket, or Azure Repos (HTTPS or SSH).
- Run git clone followed by the URL in the folder where you keep projects.
- Move into the new folder and follow the README to set the project up.
Clone vs Fork vs Download ZIP
| What you get | When to use it | |
|---|---|---|
| Clone | A local copy with full Git history, linked to the remote | Working on a team repository you have access to |
| Fork | Your own copy on GitHub, which you then clone | Contributing to someone else's project, such as open source |
| Download ZIP | Just the files, with no Git history | Only 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
- What to Do on Your First Day as an IT Intern
- What to Do in Your First Week of an IT Internship
- Build a GitHub Portfolio That Gets You Internship Interviews
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