At the end of this project, you should be able to:
- Understand what is GitFlow and how to use it
- Create and merge branches using GitFlow workflow
- Handle pull requests and code reviews
- Resolve merge conflicts effectively
- Work collaboratively using Git
GitFlow is a branching model for Git that provides a robust framework for managing larger projects. It defines specific branch roles and how they should interact.
main- Contains production codedevelop- Contains pre-production code
feature/*- Used to develop new featuresrelease/*- Prepare for a production releasehotfix/*- Fix critical bugs in productionbugfix/*- Fix bugs in development
# Initialize GitFlow
git flow init
# Start a new feature
git flow feature start feature_name
# Finish a feature
git flow feature finish feature_name
# Start a release
git flow release start release_name
# Finish a release
git flow release finish release_name
# Start a hotfix
git flow hotfix start hotfix_name