Skip to content

Instantly share code, notes, and snippets.

@idris
Last active August 29, 2015 13:56
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 idris/8849935 to your computer and use it in GitHub Desktop.
Save idris/8849935 to your computer and use it in GitHub Desktop.
`gmo` command to merge pull requests
#!/bin/bash
git merge -m "Merge #$1 from $2 into $(git symbolic-ref --short HEAD)" origin/$2
@HackAttack
Copy link

parse_git_branch_bare could be simplified to git symbolic-ref --short HEAD.

@idris
Copy link
Author

idris commented Jun 13, 2014

Thanks! Updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment