Skip to content

Instantly share code, notes, and snippets.

@liemle3893
Created May 12, 2019 16:39
Show Gist options
  • Save liemle3893/1d8f82422cbf55168d6ce0f606968d81 to your computer and use it in GitHub Desktop.
Save liemle3893/1d8f82422cbf55168d6ce0f606968d81 to your computer and use it in GitHub Desktop.
My git workflow

My developer story: git workflow

I use git-flow for all of my projects.

  • Master branch: Run on Production Environment
    1. This branch was protected: only repo owner can push/accept pull request.
  • Develop branch: Run on Development/Staging environment
    1. Code that pass QC will be go on to staging
    2. Create pull request to master after QA.
  • Hotfix branch: must be base on master
    1. Rebase before create pull request
    2. Create a pull request to master when complete.
    3. Update develop branch.
  • Feature branch: Development only.
    1. Rebase before merge into develop branch.
  • Issue branch: Development only
    1. Similar to feature branch. Created mainly because of bugs in develop/staging environment or low priority bugs on production.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment