CHAPTER 13
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 ...
Get Git Recipes: A Problem-Solution Approach 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.