What this book covers
Chapter 1 is the Introduction; you will learn about how the book is structured, what Git is, what version control systems are, where Git came from, and what tools are available for Git. You will also learn how to install Git on your computer.
In Chapter 2, Creating Your Repository, you will learn how to create a repository and clone it from GitHub. You will see the relationship between the repository on your disk and the one you've created on GitHub. A simple example program will be introduced.
In Chapter 3, Branching, Places, and GUIs, we'll cover the work area, the index, the repository, the remote repository, and the stash; what they are; and what they are for.
In Chapter 4, Merging, Pull Requests, and Handling Merge Conflicts, you'll learn about branching: a central concept in version control and one of Git's great strengths. Branching allows you to work on more than one thing at a time and keeps your release code clean. Git has especially fast branching.
In Chapter 5, Rebasing, Amend, and Cherry-Picking, you'll learn how to re-write history with Rebase and Amend. The very term Rebase makes some programmers quiver with fear, but I'll show you how to master this useful (and safe!) tool.
In Chapter 6, Interactive Rebasing, we'll look at how you can change the message associated with your commit, rearrange multiple commits, and even drop commits before pushing them to the server.
In Chapter 7, Workflow, Notes, and Tags, we examine the basic workflow for managing your repository, as well as how to add metadata to keep your repository clean and clear.
In Chapter 8, Aliases, we'll examine aliases and how they can save you a lot of work. Aliases can combine commands and all their flags to make your life much easier.
In Chapter 9, Using the Log, we will look at the very powerful log
command. Log is much overlooked, and yet it can give you insight into every aspect of your current and past status of your projects.
In Chapter 10, Important Git Commands and Metadata, we'll go on to examine some very useful and important Git commands. These powerful statements can get you out of trouble when things appear to have gone wrong.
In Chapter 11, Finding a Broken Commit: Bisect and Blame, we'll look at a life-saving command, Bisect
, which helps Git help you find where your program broke.
In Chapter 12, Fixing Mistakes, you'll learn how to get yourself out of difficulty if you make a mistake while using Git.
Finally, in Chapter 13, Next Steps, we'll take a quick look at additional resources.