Menu
Coddy logo textTech

Push, Pull And Clone

Part of the Version Control section of Coddy's Terminal journey. Lesson 48 of 58.

Three commands move work between your local repo and a remote:

  • git clone <url>: download a complete copy of an existing remote repo, including its full history. This is how you start working on someone else's project.
  • git push <remote> <branch>: upload your local commits on the named branch to the remote.
  • git pull <remote> <branch>: download new commits from the remote and merge them into your current branch. It is shorthand for git fetch followed by git merge.

The first time you push a new branch, you usually pass -u (or --set-upstream) to remember the link:

git push -u origin feature-login

After that, plain git push and git pull use the saved upstream automatically.

You will not run any of these against a real server in this course, but you will recognize them everywhere in real-world tutorials.

Try it yourself

This lesson doesn't include a code challenge.

quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Version Control

Practice on your own: Terminal playground