Skip to content

Instantly share code, notes, and snippets.

@CameronWills
Last active January 30, 2017 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CameronWills/abf9e307669b1005c88ef82e55102cd0 to your computer and use it in GitHub Desktop.
Save CameronWills/abf9e307669b1005c88ef82e55102cd0 to your computer and use it in GitHub Desktop.
Git Branching Strategy

When working on our git repositories, this is the general workflow / branching strategy we follow:

  • Development happens on the master branch (this way new developers can start writing code as soon as they've clone the repository)

  • Long-running development on a features/feature_name branch and then merged into master

  • Work to be done by vendors happen on a vendors/vendor_name branch and merged into master after being checked over (use pull requests).

  • Merge master into deploy/production or deploy/qa to trigger the respective deployment in the CI/CD tool.

  • Hotfixes on the deploy/production branch or deploy/qa branch if separate testing is required first

  • deploy/production is precious/sacred and should be deployable at all times

git-master-flow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment