пятница, 23 августа 2013 г.

Git Extensions + Hub flow + Git

Here is some tips how to somehow integrate GitHub and Hubflow to Git Extensions:

Git Extensions supports scripting, that could be integrated either in UI or autostart before/after some actions.

I've created the following scripts for Git Extension, hope they will be useful:

Flow feature start, create pull request and prune remote branches:

To add these scripts go to Settings->Settings->Scripts:

  1. Prune remote - git / remote prune origin
  2. HF Feature start - git / hf feature start {UserInput} - it will ask for feature name
  3. Create pull requests - git / hub pull-request -b TargetProcess:develop -h TargetProcess:{cLocalBranch}

For pull requests you need to download a hub extension for git from here and put in your Git\Bin folder. It just nothing than a https://github.com/github/hub script. As far as git bash we are using could not start the hub script directly, I've just renamed it to git-hub to allow run it as standard git command, i.e. git hub pull-request.