Skip to Main Content
Pragmatic Version Control Using Git
book

Pragmatic Version Control Using Git

by Travis Swicegood
December 2008
Intermediate to advanced content levelIntermediate to advanced
184 pages
4h 47m
English
Pragmatic Bookshelf
Content preview from Pragmatic Version Control Using Git

1.5 Tracking Projects, Directories, and Files

So far you’ve seen how to store your code in repositories. In this section, we’ll talk about how to organize the things you store.

At the lowest level, Git tracks the files you store in your repository as content. This is different from many version control systems that track files. Instead of tracking a models.py file, Git tracks the content—the individual characters and lines that make up the variables, functions, and so on—of models.py, and Git adds metadata to it such as the name, file mode, and whether the file is a symlink. It’s a nuanced difference, but it’s an important one.

Technically, this has a lot of advantages. It reduces the amount of storage space needed to store the entire history ...

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: Mastering Version Control

Git: Mastering Version Control

Ferdinando Santacroce, Aske Olsson, Rasmus Voss, Jakub Narębski
Pragmatic Guide to Git

Pragmatic Guide to Git

Travis Swicegood
Git Version Control Cookbook - Second Edition

Git Version Control Cookbook - Second Edition

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

Publisher Resources

ISBN: 9781680500189Errata Page