Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Created May 1, 2014 15:10
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 gavinblair/f449f8ef64dbcc873c57 to your computer and use it in GitHub Desktop.
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
#!/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