Skip to Content
Git Recipes: A Problem-Solution Approach
book

Git Recipes: A Problem-Solution Approach

by Włodzimierz Gajda
December 2013
Beginner
420 pages
9h 17m
English
Apress
Content preview from Git Recipes: A Problem-Solution Approach

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 ...
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

Pragmatic Version Control Using Git

Pragmatic Version Control Using Git

Travis Swicegood
Git: Mastering Version Control

Git: Mastering Version Control

Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski
Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

Kenneth Geisshirt, Emanuele Zattin(EUR), Aske Olsson, Rasmus Voss
Git in Practice

Git in Practice

Mike McQuaid

Publisher Resources

ISBN: 9781430261032Purchase book