Explaining git bisect – finding the needle in the haystack
You’re working on a one-page portfolio website and suddenly, something goes wrong. A section of your website, let’s say My PORTFOLIO, stops working or disappears. You’re not sure when or how the problem started. You know it was there before, but now it’s gone. What happened? This is where git bisect comes to the rescue. It’s like a detective game to find out when and where things went wrong in your project.
The git bisect
command is like a time machine. It helps you find the exact change (commit) in your project that caused the issue.
Let’s add some code for the My PORTFOLIO section for the one-page portfolio website:
Figure 7.15 – Code addition to the website
Now, let’s add some CSS styling for this new section:
Figure 7.16 – Code added to the My PORTFOLIO section
The rest of the HTML code...