# Git Push

> Sending your new commits up to the shared remote. Then the team can get them.

**Field:** Software Development  
**Category:** Version Control  
**Also known as:** Push

## Think of it like

Think of it like a letter in your bag. Until you post it, no one else can read it.

## Definition

To push is to send your new commits from your computer to a remote. After a push, your team can see and pull your work. Git refuses the push if the remote has commits you do not have yet. Then you pull first, sort out any conflicts and push again. A push only sends commits, so unsaved or uncommitted work stays behind.

## Example

Emma pushes her dark-mode commits at the end of the day. The next morning, Jack pulls them and sees the new look.

## Example code

```console
$ git push -u origin main
To https://example.com/ada/shop.git
 * [new branch]      main -> main
branch 'main' set up to track 'origin/main'.
```

The first push sends main and links it to the remote copy.

## Why it matters

Work that is not pushed only exists on one laptop. Pushing shares it and backs it up.

## Common mistake

Using git push --force on a shared branch. It wipes out commits that others pushed.

## Three principles

- **Up to the remote.** Your commits leave your machine.
- **Pull first if told.** Git refuses when you are behind.
- **Commits only.** Uncommitted work stays home.

## Related terms

- [Git Pull](https://learn.benibix.com/term/development/pull)
- [Commit](https://learn.benibix.com/term/development/commit)
- [Remote Repository](https://learn.benibix.com/term/development/remote)
- [Pull Request](https://learn.benibix.com/term/development/pull-request)

## Told apart from

- [Git Commit vs Git Push](https://learn.benibix.com/compare/git-commit-vs-git-push): A commit saves a change on your own computer. A push sends your commits to the shared remote, where the team can see them.

## Taught in

- [Git Clone, Push and Pull](https://learn.benibix.com/learn/development-version-control/git-clone-push-and-pull): Git and GitHub, 9/13

---

Source: https://learn.benibix.com/term/development/push
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
