wunderio / WunderFlow

https://wunderflow.wunder.io
31 stars 9 forks source link

Git WunderFlow

Description

WunderFlow is a Git workflow that tries to make it easier to have multiple ongoing development tracks simultaneously while still allowing clean releases and steady hotfixes. It also makes it easy to show any unfinished work to customers.

Main branches

Develop

Main

Production

Development workflow

New feature

Epic features

Sometimes there might be bigger project that needs to be developed separately and where different features are dependant from each other

Hotfix

Release

Examples

Create a new feature and push it to develop for testing

git checkout main
git pull origin main
git checkout -b feature/c1234-adding_this
git add
git commit [... reiterate as many time as needed]
git push origin feature/c1234-adding_this
git checkout develop
git pull origin develop
git merge --no-ff feature/c1234-adding_this
git push origin develop

Create a hotfix

git checkout production
git pull origin production
git checkout -b hotfix/111-fix
git add
git commit [... reiterate as many time as needed]
git push origin hotfix/111-fix
git checkout develop
git pull origin develop
git merge --no-ff hotfix/111-fix
git push origin develop
[test again]
git checkout production
git pull origin production
git merge --no-ff hotfix/111-fix
git push origin production
git rebase production main
git push origin main

Publish a feature to main for the pre-release

git checkout main
git pull origin main
git merge --no-ff feature/c1234-adding_this
git push origin main

Push main to production

git checkout production
git pull origin production
git merge --no-ff main
git tag -a mytag -m “mytag”
git push origin production
git push --tags

Diagrams