Develop - This is considered the main branch for the purpose of development. This branch will be used by developers to branch from, do some work, then merge back into it via a pull request. Commits on the develop branch are not associated with releases and can be seen as the current “work in progress“ state of the project. Like the main branch, this should never be pushed to directly unless done by a lead for a good reason.

Unlike main branches, supporting branches do not have infinite lifetimes; in fact, the shorter their lifetime, the lower the risk of merge conflicts and outdated files. There are 3 support branches: feature, release and hotfix.
Feature - Feature branches are the primary branches that developers will work on. Whenever a developer begins working on a new feature or a bug (specifically bug fixing for the next release, not hotfixes), they will first need to create a feature branch to work on. Feature branches are created off the develop branch and can be named anything appropriate to the task they are working on e.g. “saving-system“. The developer can then work on that feature branch until the necessary feature/bugfix is complete. The developer will then create a pull request into the develop branch, not push directly to the develop branch. Their work will first be reviewed and tested (most likely by a lead) before being approved for a merge. There is no limit on how many feature branches a single developer can create at once, and further sub-branches can be created from feature branches if necessary, but feature branches should be short-lived and frequently be merged back into the develop branch to avoid conflicts due to outdated versions of the project. After a feature branch successfully merges into the develop branch, the feature branch can be deleted, provided it is no longer required. If the feature branch is required for more work after a successful merge into develop, it should be fully rebased on develop and ideally act like a brand-new branch.
Release/Staging - To bridge the gap between the chaotic develop branch, where developers are constantly trying to push their work to, and the main branch where releases are created, a temporary branch is used for staging, testing and preparation. This will typically be created by a lead or someone in charge of creating a release, though any developer may be tasked with working on a release branch for any number of reasons. The release branch also acts as a cutoff point for feature branches to sneak into a release last minute, where they may introduce bugs due to rushing and a lack of testing. Once a release is ready, it’s merged from the release branch into main and back into develop to take any fixes and changes back into the “work in progress“ branch of the project.
Hotfix - Finally, hotfix branches are similar to feature branches, but unique in that they operate off the main branch. As the name suggests, they are for quickly patching bugs on the latest release without going through the entire pipeline of adding a feature/bugfix to the next release. This should be reserved for urgent game-breaking bugs only, as it skips some stages of testing and validation before making it into the live release. Once a hotfix has been developed. It’s pushed to the main and develop branches for continuity and removing the fixed bug from live and “work in progress” versions of the project.
That’s it, you now know GitFlow! This is a handy quick-reference, but for more information, check out the links below:
For most developers, the typical workflow will consist of the following:
Creating a feature branch off the develop branch with an appropriate name.
Checking out the newly created feature branch.
Carrying out whatever work is needed.
Creating a pull request to merge their feature branch back into develop. See Working w/Feature Branches.
Integration testing their work in the automatically generated build.
Requesting a review of their pull request.
Carrying out changes to their feature based on feedback from the pull request.
Upon approval, merge the feature branch.
Deleting the feature branch.