Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (5 sloc) 286 Bytes
#!/bin/bash
current_branch=`git rev-parse --abbrev-ref HEAD`
remote_url=`git remote get-url origin | awk '{gsub(/git@github.com:/,"")}1' | awk '{gsub(/\.git/,"")}1'`
git push origin $current_branch --set-upstream
open https://github.com/$remote_url/compare/$current_branch?expand=1