Skip to Content
Git: Mastering Version Control
book

Git: Mastering Version Control

by Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski
October 2016
Beginner
861 pages
20h 37m
English
Packt Publishing
Content preview from Git: Mastering Version Control

Chapter 12. Tips and Tricks

In this chapter, we will cover the following topics:

  • Using git stash
  • Saving and applying stashes
  • Debugging with git bisect
  • Using the blame command
  • Color UI in the prompt
  • Autocompletion
  • Bash prompt with status information
  • More aliases
  • Interactive add
  • Interactive add with Git GUI
  • Ignoring files
  • Showing and cleaning ignored files

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 with an important task over efficient bug hunting with bisect and blame, to 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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

Kenneth Geisshirt, Emanuele Zattin(EUR), Aske Olsson, Rasmus Voss
Git Pocket Guide

Git Pocket Guide

Richard E. Silverman

Publisher Resources

ISBN: 9781787123205Supplemental Content