Skip to content

Instantly share code, notes, and snippets.

@idris

idris/gmo

Last active Aug 29, 2015
Embed
What would you like to do?
`gmo` command to merge pull requests
#!/bin/bash
git merge -m "Merge #$1 from $2 into $(git symbolic-ref --short HEAD)" origin/$2
@HackAttack

This comment has been minimized.

Copy link

@HackAttack HackAttack commented Feb 6, 2014

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

@idris

This comment has been minimized.

Copy link
Owner Author

@idris 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