You realized that something is broken with your project and want to fix it. But you are also currently working on a major feature on main
right now
and you don’t want to push that major feature yet.
Create a bug fix branch named bug-fix
and go to the branch.
On bug-fix
, open the greet.py
file and ensure that the greet
function prints the name
variable, not just Alice
.
Commit and save the fix.
On bug-fix
, open the calculator.py
file and ensure that the add
function returns the sum of two numbers.
Commit and save the fix.
Return to the main
branch where you’re working on your major feature.