Skip to content

Instantly share code, notes, and snippets.

@hcancelik
Last active January 26, 2021 13:16
Show Gist options
  • Select an option

  • Save hcancelik/539602d85e1019060beaea411f71b510 to your computer and use it in GitHub Desktop.

Select an option

Save hcancelik/539602d85e1019060beaea411f71b510 to your computer and use it in GitHub Desktop.
Github Aliases
[alias]
pushup = "!git push --set-upstream origin $(git symbolic-ref --short HEAD)"
pr = "!f() { open "$(git config --get remote.origin.url | sed -r 's/.*(\\@|\\/\\/)(.*)(\\:|\\/)([^:\\/]*)\\/([^\\/\\.]*)\\.git/https:\\/\\/\\2\\/\\4\\/\\5/')/compare/$(git symbolic-ref --short HEAD)?expand=1\\&template=${1}.md"; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment