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 4

image

Managing Files

In this chapter we will practice and analyze file system commands used within the working directory. We will create, modify, remove, and rename files, and check how these operations influence the repository.

As you already know, git doesn't automatically register the changes made in the working directory. To create a new revision you have to issue special commands:

$ git add -A$ git commit -m "Some comment..."

Up to this point we treated them as one atomic operation that can be described as saving the snapshot of the working directory as a new revision. Now, we will dissect this operation into two separate steps:

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