Git Version Control Cookbook - Second Edition: Leverage version control to transform your development workflow and boost productivity
Kenneth Geisshirt, Emanuele Zattin, Aske Olsson, Rasmus Voss
A series of practical recipes to simplify the Git learning experience and increase your productivity when using Git version control
- Filled with practical recipes that will teach you how to use the most advanced features of the Git system.
- Improve your productivity by learning to work faster, more efficiently, and with more confidence.
- Discover tips and tricks that will show you when and how to use the advanced features of Git.
Git is one of the most popular tools for versioning. This book builds on the success of the previous edition and provides you with an up-to-date guide to solving problems related to versioning.
Start your journey by understanding the Git data model and how it stores files and looks at commits. By using simple commands, you will learn how to navigate through the database. You will explore the techniques to configure Git with comprehensive examples and configuration targets. Gain an in-depth insight to improve your understanding of branches and recovering from mistakes right from committing on the wrong branch to recovering lost commits/files. We will look at the features rebase has to offer and use regular Git merge on other branches. You will explore Git notes and learn how to utilize the update, list and search commands. As we move further, you will gain an understanding of how to extract metadata from repositories and automate your daily tasks using Git hooks. The next chapter will give you an in-depth insight into repository maintenance, patching and offline sharing.
Finally, you will be introduced to various tips and tricks useful for everyday usage and gain knowledge about Git providers, integrations, and clients.
What you will learn
- Understand the Git data model and how you can navigate the database with simple commands.
- Learn how you can recover lost commits/files.
- Discover how you can force rebase on some branches and use regular Git merge on other branches.
- Master the techniques required to extract metadata from repositories.
- Explore Git notes and understand the various features that it has to offer.
- Learn how to decode different subcommands.
Who This Book Is For
Developers, as well as professional build release managers who want a full-fledged practical guide that will take their Git knowledge to the next level, will benefit from this book. A basic knowledge of GNU tools and shell/bash scripting is needed.