Learn how to push your local commits to a remote repository.
The `git push` command is used to upload your committed changes from your local repository to a remote repository. This is how you share your work with your team or back up your code on a platform like GitHub. When you push, you specify which remote you want to push to and which local branch's changes you want to send. The command format is `git push <remote-name> <branch-name>`. For instance, to push the changes from your local `main` branch to the `origin` remote, you would run `git push origin main`. The first time you push a new branch, you might need to use the `-u` flag (`git push -u origin <branch-name>`). This sets up a tracking relationship between your local branch and the remote branch, so in the future, you can simply run `git push` from that branch without specifying the remote and branch name again. Pushing only sends commits that the remote repository doesn't already have.