Chapter 2. Git Fundamentals – Working Locally
In this chapter, we will go deep into some of the fundamentals of Git. It is essential to understand how Git thinks about files, its way of tracking the history of commits, and all the basic commands that we need to master in order to become proficient.
Repository structure and file status life cycle
The first thing to understand while working with Git is how it manages files and folders within the repository. This is the time to analyze a default repository structure.
The working directory
In Chapter 1, Getting Started with Git, we created an empty folder and initialized a new repository using the git init
command (in C:\Repos\MyFirstRepo
). Starting from now, we will call this folder the working directory ...
Get Git: Mastering Version Control 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.