Created
February 20, 2015 10:55
-
-
Save nongio-zz/1049302f529125efb030 to your computer and use it in GitHub Desktop.
MR
This file contains 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/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