Create a fix-bug topic branch and commit revisions on it

Switch to the branch we will build upon, main:

git switch main

Create a new topic branch fix-bug and switch to it:

git switch -c fix-bug

Open the project in VS Code.

Edit the app/views/people/show.html.erb file such that, instead of "Destroy this person" (which sounds bad), it says "Delete this record".

Stage all your changes and create a new commit:

git add -A
git commit

Add the log message, “Modify the destroy-person button”, and save the commit: press Ctrl-X (to exit the editor), press Y (to confirm saving the log message), and press Enter (to confirm the location to save to).

Run the gloga command.

Note that the branch fix-bug is now ahead of main in the version history.


⏴ Back Next ⏵