Suggest an editImprove this articleRefine the answer for “What is `git push` used for?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**`git push`** is used to send local commits to a remote repository. **Key point:** a push is only possible if the local history is compatible with the remote one, otherwise Git requires running `fetch`/`pull` first.Shown above the full answer for quick recall.Answer (EN)Image`git push` is used to **send local commits to a remote repository**. When you run `git push`: - local **commits are transferred to the server** - the corresponding **branch in the remote repository** is updated - changes become **available to other developers** - the remote repository is synced with the local one Important: - `git push` sends **only commits**, not just files - if no commits were created (`git commit`), there is nothing to send - a push is only possible if the local history is compatible with the remote one (otherwise Git requires running `fetch/pull` first) `git push` is usually used for: - publishing your work - sharing changes with the team - updating remote branches - triggering CI/CD and code review processes In short: `git push` **publishes local changes to the remote repository**.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.