Options (2)
-u, --set-upstreambooleanSend changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one
git push {{[-u|--set-upstream]}} {{remote_name}} {{local_branch}}-d, --deletebooleanDelete a branch in a remote repository
git push {{remote_name}} {{[-d|--delete]}} {{remote_branch}}Examples (8)
Send local changes in the current branch to its default remote counterpart
git pushSend changes from a specific local branch to its remote counterpart
git push remote_name local_branchSend changes from a specific local branch to its remote counterpart, and set the remote one as the default push/pull target of the local one
git push [-u|--set-upstream] remote_name local_branchSend changes from a specific local branch to a specific remote branch
git push remote_name local_branch:remote_branchSend changes on all local branches to their counterparts in a given remote repository
git push --all remote_nameDelete a branch in a remote repository
git push remote_name [-d|--delete] remote_branchRemove remote branches that don't have a local counterpart
git push --prune remote_namePublish tags that aren't yet in the remote repository
git push --tags