Skip to content

Instantly share code, notes, and snippets.

@imsickofmaps
Last active December 20, 2015 11:19
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save imsickofmaps/6122473 to your computer and use it in GitHub Desktop.
Save imsickofmaps/6122473 to your computer and use it in GitHub Desktop.
Using git-flow

How we use git-flow

The commands

First make sure you have a develop and master branch. If you only have develop run

$ git checkout -b master

Make it work locally

$ git flow init

Create a issue on github (e.g. Start blog application).

Start the feature

$ git flow feature start issue-1-start-blog-application

Code like a madman

$ git flow feature publish issue-1-start-blog-application

Convert to a pull request

$ git pull-request -i 1 -b develop

Send someone the pull-request link or @mention them

Once its got a +1 from the reviewer(s) and tests are passing on Travis

$ git flow feature finish issue-1-start-blog-application
$ git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment