Skip to content

Instantly share code, notes, and snippets.

@idris
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save idris/8849935 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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

@idris

idris commented Jun 13, 2014

Copy link
Copy Markdown
Author

Thanks! Updated.

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