Git Essentials is a book for for all developers, beginner to advanced, and written to get you up to speed with the world's most popular version control system. Git has become synonymous with VCSs and is expected to be in the wheelhouse of every developer as one of the most fundamental tools used to coordinate software development.
Stop turning to Google every time you need to commit some code, create a feature branch, or tag a release. With this book, you'll actually learn Git instead of just memorize the commands. We're all guilty of copy-pasting Git commands from the first result that shows up in Google, but the important question we're missing is - is that really the right thing for our situation? Learning and understanding these commands will help you become a more productive member of your team.
This book assumes no prior experience with Git, it applies to any operating system, and will work with any source files that can be version controlled. It covers almost everything you need to know, from why version control systems are considered fundamental tools to the basics of Git to advanced operations and best practices.
Author(s): François Dupire, David Landup
Edition: 1
Publisher: StackAbuse
Year: 2021
Language: English
Commentary: The PDF book was being given away on the StackAbuse site at the time the file was uploaded, but there is also a paperback edition on Amazon, this version of the book is not the same as the paperback one, so maybe the ISBN is not correct, but they should be almost the same.
Pages: 186
Tags: git; scm; vcs; github; gitlab; source code manager; version control system
Table of Contents
1. Introduction to Git
2. Source Code Management - SCM
What is Git?
3. Getting Started with Git
Installing Git
Basic Setup
Hello, Git!
4. The Basics of Git
Demo Project
Git Repositories
Git Commits
Index and Staging Area
Ignore Files in a Repository
5. Branches
Working on a Branch
Committing Changes to Different Branches
Gathering Branches Together
Deleting a Branch
Renaming a Branch
6. Remote Repositories
What is a Remote Repository?
Setting up a Remote Repository
Tracking Branches
Sending and Retrieving Remote Modifications
7. Branching Models - Strategies
What's a Branching Model?
Trunk-Based
Feature Branching
GitHub Flow
Git Flow
Which One to Choose?
8. Advanced Operations
Stash
Tag
Reset
Revert
Cherry-pick
Git Diffs
Amending Commits
Interactive Rebase
Interactive Staging
9. Good/Bad Practices
Commit Often
Write Meaningful Commit Messages
Rebase Often from the Main Branch
Don't Rebase the Main Branch
Don't Commit Generated Files
Push Often
Squash Before Going on the Main Branch
Don't Cherry-Pick Often