Git from Scratch
Learn Git from the inside out.
As with other SaltyVagrant books this one assumes you are interested in mastering your craft and in order to do that develop a detailed understanding of your tools, in this case Git.
Assuming no prior knowledge of Git we explore what Git is and how it works internally. Once we have a clear understanding of some internals we look at the ‘easy’ interface commonly used but not really understood.
Why do things this way round? It is my belief that many problems people experience using Git stem from a lack of understanding about what Git does ’under the hood’ and by understanding these internals you will be able to diagnose and fix even the most complex problems you (or your colleagues) encounter.
Contents
Setup
1.1 Required Tools
Git Guts
2.1 Git Repository
2.2 blobs
2.3 trees
2.4 commits
2.5 refs
2.6 References (branches and tags)
The Index
3.1 The Git Triumvirate: the repo, the index, and the work dir
Basic Local Workflow
4.1 Create a new repository
4.2 Add a new file
4.3 Change a file
4.4 Add some directories and files
Working With Other Repositories
5.1 Remote refs
1.1 Required Tools
Git Guts
2.1 Git Repository
2.2 blobs
2.3 trees
2.4 commits
2.5 refs
2.6 References (branches and tags)
The Index
3.1 The Git Triumvirate: the repo, the index, and the work dir
Basic Local Workflow
4.1 Create a new repository
4.2 Add a new file
4.3 Change a file
4.4 Add some directories and files
Working With Other Repositories
5.1 Remote refs