Chapter 5Correcting Errors While Working With Git

In the last few chapters, we’ve built a good foundation in Git basics. We’ve gone through the basic Git commands, followed by some more advanced processes that help you contribute to an organization. Up to this point, we haven’t discussed how to fix mistakes you might make while working with Git.

Alexander Pope once said “To err is human”—and it’s only human to commit mistakes during the Git workflow. Git makes it possible to correct mistakes at each stage of a project—which is yet another reason why it’s so popular with developers.

In this chapter, we’ll look first at how you can correct your own mistakes. Then we’ll look at how to weed out bugs introduced at various points into repository either ...

Get Jump Start Git now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.