Sikau

Git & GitHub · Day 14 · about 25 min

Clone and pull

Get a project, and keep it up to date.

Joining a team

On your first day you don't start from scratch: you clone the team's repository — its full history comes with it. Then each morning you pull to get what everyone else pushed.

clone, fetch, pull

git clone https://github.com/sikau/team-site.git
ls
git log --oneline
git status
git pull
git log --oneline
cat contact.html
  • Pull before you start work, and before you push.
  • git fetch alone downloads without changing your files — handy to look before merging.

The rest of this lesson

  • fetch, merge and pullexplain
  • A daily rhythmexplain
  • What does clone give you?predict
  • Download commandsmatch
  • Your turnwrite code
  • Badge quizquiz
  • What you learnedrecap

Continue this lesson free — run real code in your browser

Continue with Google

See all 18 lessons of Git & GitHub