GitHubFlow is a simple and effective branching strategy which the folks at GitHub use. Most teams actually do not need everything GitFlow gives them and are much better off with a simpler workflow.
GitHubFlow is in a nutshell:
- Update main to latest upstream code
-
Create a feature branch
git checkout -b myFeatureBranch
- Do the feature/work
- Push feature branch to origin
- Create pull request from origin/ -> upstream/main
- Review, fix raised comments, merge your PR or even better, get someone else to.
The main rule of GitHub Flow is that main should always be deployable. GitHub Flow allows and encourages continuous delivery.