git publish

Publish the current branch

Git alias:

publish = !"git push --set-upstream origin $(git current-branch)"

Publish the current branch by pushing upstream to origin, and setting the current branch to track the upstream branch.

Example:

git publish

Compare: