Created
May 1, 2014 15:10
-
-
Save gavinblair/f449f8ef64dbcc873c57 to your computer and use it in GitHub Desktop.
opens gitlab in a new tab with the New Merge Request url for your fork
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
URL=$(git remote -v | grep origin | grep fetch | sed s/origin// | sed s/\:/\\//g | sed s/git\@/http\:\\/\\// | sed s/\(// | sed s/\)// | sed s/fetch// | sed s/\\.git/\\/merge_requests\\/new/ | sed 's/[ \t]*$//') | |
open /Applications/Google\ Chrome.app $URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment