https://www.atlassian.com/git/tutorials/comparing-workflows/feature-branch-workflow
https://nvie.com/posts/a-successful-git-branching-model/
<aside>
š” The core idea behind the Feature Branch Workflow is that all feature development should take place in a dedicated branch instead of theĀ main
branch. This encapsulation makes it easy for multiple developers to work on a particular feature without disturbing the main codebase. It also means theĀ main
branch will never contain broken code, which is a huge advantage for continuous integration environments.
</aside>
Starts with an updated local main branch:
git checkout main
git pull origin main
Creates and checkout a feature branch:
git checkout -b mary/feature/profile_dashboard main
Commits :
git commit -m 'feature: added global rank to profile dashboard'
git commit -m 'fix: bug preventing display global rank on profile dasboard'
[...]
Rebases :
git fetch origin main
git rebase origin/main
Pushes changes upstream :
git push -u origin mary/feature/profile_dashboard