Introduction

In this chapter, you will find some tips and tricks that can be useful in everyday Git work; from stashing away your changes when you get interrupted while doing an important task, to efficient bug hunting with bisect and blame, to finding color and status information in your prompt. We'll also look at aliases, how you can create clean commits by selecting which lines should be included in the commit and, finally, how you can ignore files.

Get Git Version Control Cookbook 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.