Skip to content

Helpful commands to help with git oneflow

License

Notifications You must be signed in to change notification settings

StevenThuriot/oneflow

Repository files navigation

oneflow

Helpful commands to help with git oneflow, based on this blogpost in a response to gitflow.

The tooling in this repo is based on feature branch scenario 3 (rebase + no ff), with the additional feature of issue branches. While identical to feature branches, they've basically got some additional syntactic sugar to easily identify the bug id and auto link and resolve it when pushing to origin. A small variation has been added for the feature branches. Instead of merging to master, they will follow the same flow and open the git repo url so you can start a pull request instead.

Add these to a folder that is included in your path variable. You can then call them as follows:

  • Starting a workflow
 $ git feature <name>
 $ git issue <id>
 $ git release  <version> [startingPoint]
 $ git hotfix <version> [tag]
  • Ending that workflow
$ git finish [annotation]
  • Useful tooling during said workflow
$ git latest
$ git latest-tag

$ git open

$ git oneflow-update
$ git oneflow-version

$ git update-sub

You can pass --h for a short readme, as follows:

$ git bugfix --h

( Where <> is required, [] is optional )

And yes, I do realize it's ironic he makes a note in his blogpost that he doesn't like tooling for flows like these.. :-)