Skip to content

Instantly share code, notes, and snippets.

bassdread

  • UK
Block or report user

Report or block bassdread

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@1stvamp
1stvamp / open-pull-request.sh
Last active Sep 23, 2019
Shortcut script to open a pull-request on Github from a local git repo
View open-pull-request.sh
#!/usr/bin/env bash
if [[ $(uname -s) == "Linux" ]]; then
browse="xdg-open"
else
browse="open"
fi
repo=$(git remote show -n origin 2>/dev/null|sed -e "/Push URL:*/!d; s/.*git@github.com:\(.*\).git/\1/; q")
branch=$(git branch --no-color 2>/dev/null|sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
You can’t perform that action at this time.