Skip to content

Instantly share code, notes, and snippets.

@hartmannr76
Created August 16, 2019 12:04
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 hartmannr76/0325ecd1ef7e8aef3314f2f904d0deae to your computer and use it in GitHub Desktop.
Save hartmannr76/0325ecd1ef7e8aef3314f2f904d0deae to your computer and use it in GitHub Desktop.
Gitconfig
[alias]
pr = "!f() { \
open https://github.com/$(git config remote.origin.url | \
sed -e 's/^https:\\/\\/github.com\\///' -e 's/.git$//')/compare/$(git rev-parse --abbrev-ref HEAD)?expand=1; \
};f"
[core]
editor = code --wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment