O'Reilly logo

Git Recipes: A Problem-Solution Approach by Włodzimierz Gajda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 13

image

More Recipes

In this closing chapter, I discuss some details that have not been covered and sooner or later can become indispensable to you. You will learn:

  • How to use the command $ git diff to compare different versions of files.
  • How to overcome the problems concerning line endings.
  • Three different methods to configure ignored files
  • Using tags
  • The command $ git archive to generate zipped package containing your project

13-1. Working with the $ git diff command

Problem

You want to learn how to use the $ git diff command to analyze the difference between two versions of the same file.

Solution

Create a new repository:

$ cd git-recipes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required