Pushing a branch uploads your local work to GitHub so it can be backed up, shared, and collaborated on.
Pushing transfers committed changes from your local repository to a remote one.
// Push a local branch to a remote repository
git push origin feature-xyz
The branch feature-xyz becomes available on GitHub for others to view or merge.
// Set upstream so future push/pull commands are shorter
git push -u origin feature-xyz