Skip to content

Instantly share code, notes, and snippets.

@nongio-zz
Created February 20, 2015 10:55
Show Gist options
  • Save nongio-zz/1049302f529125efb030 to your computer and use it in GitHub Desktop.
Save nongio-zz/1049302f529125efb030 to your computer and use it in GitHub Desktop.
MR
#!/bin/sh
current_branch="$(git rev-parse --abbrev-ref HEAD)" || ""
if [ "$current_branch" != "" ];then
echo "your are not in a git repository!!"
else
mr_url="$(bundle exec git gitlab merge $current_branch master | sed -n 2p)"
echo $mr_url | pbcopy
echo $mr_url
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment