3 options
Git version control cookbook : leverage version control to transform your development workflow and boost productivity / Kenneth Geisshirt [and three others].
- Format:
- Book
- Author/Creator:
- Geisshirt, Kenneth, author.
- Language:
- English
- Subjects (All):
- Git (Computer file).
- Open source software.
- Software engineering.
- Physical Description:
- 1 online resource (350 pages) : illustrations
- Edition:
- Second edition.
- Place of Publication:
- Birmingham ; Mumbai : Packt Publishing, 2018.
- System Details:
- text file
- Biography/History:
- Geisshirt Kenneth: Kenneth Geisshirt is a chemist, by education, and a strong free-software advocate. He spent his Christmas holidays in 1992 installing SLS Linux, and GNU/Linux has been his favorite operating system ever since. Currently, he does consultancy work in fields such as scientific computing and Linux clusters. He lives in Copenhagen, Denmark, with his partner and their two children. Zattin(EUR) Emanuele: Emanuele Zattin is the Continuous Integration Specialist at Realm Inc. with experience in software development and design. He is respected for his work in designing and developing a CM Synergy to Git history conversion tool and rolling out Git-Gerrit-Jenkins in several Nokia divisions. Olsson Aske: Aske Olsson has more than 14 years of experience in the software industry. As an electrical engineer, he has been using every tool available for development, from a soldering iron over Assembly, C, Java Groovy, Python and various DSLs for programming to different SCMs and build-, CI- and issue-tracking systems. He has worked for Nokia for 6 years and, currently, works at Keylane. Aske has experience with Git; he has been teaching Git in regular training sessions, from basic Git to advanced usage. Voss Rasmus: Rasmus Voss has been working with continuous integration, continuous delivery, automatic testing, and DevOps, in various industries. He has always strived to ensure that where developers, testers, project leaders, and managers can work with the system instead of against the system. Typically, the processes and solutions he develops are clear, precise, and well documented, with relevant feedback to all parts of the software development process.
- Summary:
- A series of practical recipes to simplify the Git learning experience and increase your productivity when using Git version control Key Features Explore practical recipes to use Git's most advanced features Learn how Git references its objects and how history is recorded Use reflog and git fsck to recover lost information Book Description Git is one of the most popular tools for versioning. Git Version Control Cookbook builds on the success of the previous edition and provides you with an up-to-date guide to solving problems related to versioning. You'll start by learning about the Git data model and how it stores files and looks at commits. By using simple commands, you'll learn how to navigate through the database. Once you have accustomed yourself to the basics, you'll explore techniques to configure Git with comprehensive examples and configuration targets. You'll gain insights into improving your understanding of branches and recovery from mistakes — right from committing to a wrong branch to recovering lost commits or files. You'll then move on to discovering the features that Git rebase has to offer and use regular Git merge on other branches. You'll explore Git notes and learn how to utilize the update, list, and search commands. In addition to this, you'll learn how to extract metadata from repositories and automate your daily tasks using Git hooks. You'll then study in detail repository maintenance, patching, and offline sharing. By the end of the book, you'll have grasped various tips and tricks for everyday usage, while increasing your knowledge of Git providers, integrations, and clients. What you will learn Understand the Git data model and use commands to navigate the database Find out how you can recover lost commits or files Force a rebase on some branches and use regular Git to merge on the rest Master the techniques required to extract metadata from repositories Explore Git notes and learn about the various features that it offers See how to decode different subcommands Who this book is for The Git Version Control Cookbook is for you if you are a developer or Build Release manager looking for a full-fledged practical guide that will take your Git knowledge to the next level. Basic knowledge of GNU tools and shell or bash scripting is needed. Downloading the example code for this book You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased t...
- Contents:
- Cover
- Title Page
- Copyright and Credits
- Packt Upsell
- Contributors
- Table of Contents
- Preface
- Chapter 1: Navigating Git
- Introduction
- Git's objects
- Getting ready
- How to do it...
- The commit object
- The tree object
- The blob object
- The branch object
- The tag object
- How it works...
- There's more...
- The three stages
- See also
- Viewing the DAG
- Extracting fixed issues
- Getting a list of the changed files
- Viewing the history with gitk
- Finding commits in the history
- Searching through the history code
- Chapter 2: Configuration
- Configuration targets
- Querying the existing configuration
- Templates
- A .git directory template
- A few configuration examples
- Rebase and merge setup
- Expiry of objects
- Autocorrect
- Git aliases
- The refspec exemplified
- Chapter 3: Branching, Merging, and Options
- Introduction.
- Managing your local branches
- Branches with remotes
- Forcing a merge commit
- Using git reuse recorded resolution (rerere) to merge Git conflicts
- Compute the difference between branches
- Orphan branches
- Chapter 4: Rebasing Regularly and Interactively, and Other Use Cases
- Rebasing commits to another branch
- Continuing a rebase with merge conflicts
- Rebasing selected commits interactively
- Squashing commits using an interactive rebase
- Changing the author of commits using a rebase
- Autosquashing commits
- Chapter 5: Storing Additional Information in Your Repository
- Adding your first Git note
- Separating notes by category
- Retrieving notes from the remote repository
- Pushing Git notes to a remote repository
- Tagging commits in the repository
- Chapter 6: Extracting Data from the Repository
- Extracting the top contributor
- There's more.
- Finding bottlenecks in the source tree
- Grepping the commit messages
- The contents of the releases
- Finding what has been achieved in the repository in the last period
- Chapter 7: Enhancing Your Daily Work with Git Hooks, Aliases, and Scripts
- Using a branch description in a commit message
- Creating a dynamic commit message template
- Using external information in a commit message
- Preventing the push of specific commits
- Configuring and using Git aliases
- Configuring and using Git scripts
- Setting up and using a commit template
- Chapter 8: Recovering from Mistakes
- Undo - Remove a commit completely
- Undo - Remove a commit and retain changes to files
- Undo - Remove a commit and retain changes in the staging area
- Undo - Working with a dirty area
- Redo - Recreate the latest commit with new changes
- Revert - Undo the changes introduced by a commit
- Reverting a merge
- See also.
- Viewing past Git actions with git reflog
- Finding lost changes with git fsck
- Chapter 9: Repository Maintenance
- Pruning remote branches
- Running garbage collection manually
- Turning off automatic garbage collection
- Splitting a repository
- Rewriting history - changing a single file
- Creating a backup of your repositories as mirror repositories
- A quick "how-to" submodule
- Subtree merging
- Submodule versus subtree merging
- Chapter 10: Patching and Offline Sharing
- Creating patches
- Creating patches from branches
- Applying patches
- Sending patches
- Creating Git bundles
- Using a Git bundle
- Creating archives from a tree
- Chapter 11: Tips and Tricks
- Using git stash
- How it works.
- There's more...
- Saving and applying stashes
- Debugging with git bisect
- Using the blame command
- Coloring the UI in the prompt
- Autocompletion
- Linux
- Mac
- Windows
- Bash prompt with status information
- More aliases
- Interactive add
- Interactive add with Git gui
- Ignoring files
- Showing and cleaning ignored files
- Chapter 12: Git Providers, Integrations, and Clients
- Setting up an organization at GitHub
- Creating a repository at GitHub
- Adding templates for issues and pull requests
- Creating a GitHub API key
- Using GitHub to authenticate at Jenkins
- Triggering Jenkins builds
- Using Jenkinsfiles
- Other Books You May Enjoy
- Index.
- Notes:
- Previous edition published: 2014.
- Description based on print version record.
- ISBN:
- 9781789136944
- 1789136946
- OCLC:
- 1048789151
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.