ps

remote push

Push commits to a remote branch on the origin remote. If there is no upstream branch on origin, one will be created.

I prefer this alias to running git push because it works regardless of whether or not there is an existing upstream branch.

Usage: git ps

CLI Command

git config --global alias.ps "push -u origin HEAD"

.gitconfig Snippet

[alias]
  ps = push -u origin HEAD