4. Fixing Problems in Git
Using Git is usually an easy-going, simple experience. Stage, commit, push, pull, merge. Most days everything works just as it should. But sometimes it doesn’t. And when things go wrong we want to have the tools available to fix it.
In this section we will cover some techniques we can use to fix problems in Git, like:
- How to revert changes you’ve made in the repository using git-revert.
- How to reset the state of a branch using git-reset.
- How to find where a problem was introduced using git-bisect.
These three techniques, along with the other knowledge you’ve gained so far in the course, will help you navigate Git when things go wrong.