Book Image

Git Essentials - Second Edition

By : Ferdinando Santacroce
Book Image

Git Essentials - Second Edition

By: Ferdinando Santacroce

Overview of this book

Since its inception, Git has attracted skilled developers due to its robust, powerful, and reliable features. Its incredibly fast branching ability transformed a piece of code from a niche tool for Linux Kernel developers into a mainstream distributed versioning system. Like most powerful tools, Git can be hard to approach since it has a lot of commands, subcommands, and options that easily confuse newcomers. The 2nd edition of this very successful book will help you overcome this fear and become adept in all the basic tasks in Git. Building upon the success of the first book, we start with a brief step-by-step installation guide; after this, you'll delve into the essentials of Git. For those of you who have bought the first edition, this time we go into internals in far greater depth, talking less about theory and using much more practical examples. The book serves as a primer for topics to follow, such as branching and merging, creating and managing a GitHub personal repository, and fork and pull requests. You’ll then learn the art of cherry-picking, taking only the commits you want, followed by Git blame. Finally, we'll see how to interoperate with a Subversion server, covering the concepts and commands needed to convert an SVN repository into a Git repository. To conclude, this is a collection of resources, links, and appendices to satisfy even the most curious.
Table of Contents (8 chapters)

What this book covers

Chapter 1, Getting Started with Git, shows the reader all the (simple) steps they need in order to install Git and do their first commit.

Chapter 2, Git Fundamentals - Working Locally, discusses how working locally reveals the essence of Git, how it takes care of your files, and how you can manage and organize your code.

Chapter 3, Git Fundamentals - Working Remotely, covers how working remotely moves your attention to the collaborating side of the tool, explaining the basic commands and options you use when working with remote repositories one by one.

Chapter 4, Git Fundamentals - Niche Concepts, Configurations, and Commands, focuses on niche concepts and commands, completing the basic set of Git commands you need to know, giving the reader some more weapons to use in difficult situations.

Chapter 5, Obtaining the Most - Good Commits and Workflows, gives the reader some hints about common ways to organize source code within Git, helping them to develop good habits every developer should adopt.

Chapter 6, Migrating to Git, takes you through a way to give a hand to developers who use other versioning system, such as Subversion, to manage the transition phase into Git.

Chapter 7, Git Resources, offers some hints, based on the author's personal experience, which could be of interest to the reader.