Skip to content

Instantly share code, notes, and snippets.

@iandesj
Created August 18, 2022 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iandesj/ff626dbfb96a863d57fb1791d958a447 to your computer and use it in GitHub Desktop.
Save iandesj/ff626dbfb96a863d57fb1791d958a447 to your computer and use it in GitHub Desktop.
git push-new
# alias for setting upstream on origin for current branch
[alias]
push-new = ! git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment