Skip to content

Instantly share code, notes, and snippets.

@nelsonenzo
Created November 22, 2017 18:33
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 nelsonenzo/3842268a1871a303708f98a24732408d to your computer and use it in GitHub Desktop.
Save nelsonenzo/3842268a1871a303708f98a24732408d to your computer and use it in GitHub Desktop.
current ~/.gitconfig with "git shove" alias for pushing new branches upstream.
# This is Git's per-user configuration file.
[user]
name = Nelbo Baggins
email = myemail@gmail.com
[alias]
shove = "!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