0.2.1 • Published 11 years ago
git-helpers v0.2.1
git-helpers
Some helpful executables for working with git.
gh-co-pull
Checkout a new branch and pull from a github user - branch combination. The following pairs are equivilents.
# In some-repo:master
$ gh-co-pull tim-smart
$ git checkout -b pull/tim-smart/master && git pull \
git://github.com/tim-smart/some-repo.git master
# In some-repo:master
$ gh-co-pull tim-smart test-branch
$ git checkout -b pull/tim-smart/test-branch && git pull \
git://github.com/tim-smart/some-repo.git test-branch
git-merge-rm
Merges a branch into the current one, pushes it then deletes the branch on both the remote and local repository.
hub-pull-req
Parses the Github issue number from the current branch name (expects
'issue/xx{/blah}) then turns that issue on Github into a pull request. This
requires gem install hub
to be installed, and available as hub
.