git-gh-merge (226B)
1 #!/usr/bin/env bash 2 3 BR=$1 4 PR=$2 5 MSG="$3" 6 7 usage () { 8 printf "usage: git gh-merge origin/branch <github-pr#> <msg>\n" 9 exit 1 10 } 11 12 if [ "$#" -ne 3 ]; then 13 usage 14 fi 15 16 exec git merge --no-ff "$BR" -m "Merge [#$PR] $MSG"