Everyone has their own copy of the project. Push and pull are how those copies stay in step.
Picture a shared filing cabinet at the office. Everyone also keeps their own copy at home. Whenever you finish a folder, you take it in and file it in the shared cabinet. Whenever you start work, you first collect any new folders other people have filed since you last looked.
Pushing is filing your work back in the shared cabinet. Pulling is collecting everyone else’s. In Git, that shared cabinet is usually a repository on a site like GitHub.
How it goes day to day
- Pull to get up to date.
- Do your work and save it as commits.
- Pull again, in case someone added something meanwhile.
- Push your commits up for everyone else.
What it isn’t
Pushing doesn’t send files you haven’t saved as a commit. Only saved changes go up.
Pulling isn’t the same as a pull request, despite the name. A pull request is asking others to check your work and join it into the main version. A pull simply fetches what’s new.
Where the comparison breaks down
Two people can’t file the same folder at the same time in a real cabinet. In Git they can both change the same page. When that happens, someone has to choose which change wins. That’s a merge conflict.
How the words fit together
You clone a repository once, save commits as you work, then push and pull to swap them. A pull request asks others to review before work joins the main version.
Pull before you push. If others changed things since you last looked, Git won't take your work until you've brought theirs in first.

When you'll hear it
“Did you push your changes?” Have you sent your work up to the shared copy so the rest of us can see it?
“Pull the latest before you start.” Bring in everyone else's newest work first, so you're not working on an old version.
“My push got rejected.” Someone else added work first, so I need to pull theirs in before mine will go up.
“Can everyone push what they have by Friday, so we can test it together?”

Try it yourselfReady to use it? The exact commands are on my other site, devcmds: Push and pull your changes ↗


