The git-flow workflow is made for personal-usage, hence adding CI/CD transform the same branching workflow convention to match with standard Pull Request workflows using github cli.
Windows - Git for Windows
MacOS - brew install git-flow
Linux - e.g. sudo apt install git-flow (based on your package manager)
Windows - e.g. winget install GitHub.CLI (based on your package manager)
MacOS - brew install gh
Linux - e.g. sudo apt install github-cli (based on your package manager)
- Run
git flow initin your repository and complete the setup - Run
gh auth loginand complete the auth - Modify/Append .zshrc tailored to your setup (optional)
- Setup github token, name it as
TOKEN
- Run
git flow (branch) start (name_of_the_branch)/git checkout -b (name_of_the_branch)(optional for refactor branch) - DO NOT complete with
git flow (branch) finish (name_of_the_branch), instead dogh pr create --base (branch - follow git-flow convention) - Follow the
gh clito complete the PR process - You should now see the merged branch getting deleted