Push
The act of uploading your local repository's committed changes to a remote repository server.
What it is
Pushing transfers your local commit history to a remote branch. It updates the remote server with the work you've completed locally. You can only push if you have write access to the remote repository and if your local branch is up-to-date with the remote branch.
When you would use it
You use push when you have safely committed your code locally and are ready to share it with your team or deploy it.
Common operations
- Uploading a finished feature branch to GitHub to open a pull request.
- Backing up a day's worth of local commits.