/pull_request

An Easier Way To Handle Pull Requests

Primary LanguageShell

v0.2 pull_request.sh

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. (http://creativecommons.org/licenses/by-sa/3.0/)

This script provides an easier way to script pull request from team members when using GitHub. This script assumes that the GitHub Remote is named Origin and everything is currently done in quite mode so you only get a nice output.  After it has completed the pull request it will output new commits made by the user that you are pulling from.

Basic Usage

./pull_request.sh -d $HOME/Projects/MyProject -p MyProject.git -u coworker

This will merge in the latest canges from the cowokers master branch on git hub.


Valid Options:
-r Revision :: Pull in a specific revision instead of the whole branch

-u GitHub User Name :: User who's branch we want to merge into our working directory

-d Local Working Copy :: Defaults to the Current Path

-p GitHub Project Name :: Project name from GitHub with the .git on the end of it.  Example: pull_reqeust.git

-b Branch To Get Changes From :: Defaults to master


Version History

v0.2
Fixed the single revision to run a cherry-pick instead of a merge as the merege was pulling in all change upto that branch

v0.1
Initial Version