Download projects
Get code from GitHub
⏱ Est. ~4 min
01 · Read
Cloning downloads an entire GitHub repo onto your computer, pulling fetches the latest changes from a repo you already have. This is how you get code from other people.
💡 Picture thisClone is like downloading someone's entire photo album onto your computer — with the full history. Pull is like checking whether new photos have been added since your last download. Clone once, then use pull to stay in sync.
Key points
- git clone URL downloads the entire repo, including all history
- git pull fetches the latest changes from the remote and merges them in
- Clone is a one-time setup; pull is something you'll do often
02 · Terminal exercise
Most engineers start by downloading an existing project from GitHub. git clone copies the whole project over — all files and the complete history.
(This section is interactive — please enable JavaScript.)
03 · Terminal exercise
When others push changes to GitHub, you need to fetch their updates. git pull grabs the latest changes and merges them into your version.
(This section is interactive — please enable JavaScript.)
04 · Quiz
While you were away, your teammate pushed new changes to GitHub. How do you get their changes onto your computer?
- git pull to download and merge their changes
- git clone the entire repo again
- git push to sync both sides
- git diff to compare local and remote
Other lessons in this chapter
⚠ The full interactive experience needs JavaScript. Please enable it and reload.
※ This is an independent Traditional Chinese teaching project — not an official Anthropic product. Claude™ is a trademark of Anthropic, PBC.