万本电子书0元读

万本电子书0元读

顶部广告

Git Version Control Cookbook电子书

售       价:¥

9人正在读 | 0人评论 9.8

作       者:Kenneth Geisshirt,Emanuele Zattin,Rasmus Voss

出  版  社:Packt Publishing

出版时间:2018-07-26

字       数:39.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Title Page

Copyright and Credits

Git Version Control Cookbook Second Edition

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the authors

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the color images

Conventions used

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Get in touch

Reviews

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

Getting ready

How to do it...

How it works...

See also

Viewing the DAG

Getting ready

How to do it...

How it works...

Extracting fixed issues

Getting ready

How to do it...

How it works...

There's more...

Getting a list of the changed files

Getting ready

How to do it...

How it works...

There's more...

See also

Viewing the history with gitk

Getting ready

How to do it...

How it works...

There's more...

Finding commits in the history

Getting ready

How to do it...

How it works...

There's more...

Searching through the history code

Getting ready

How to do it...

How it works...

There's more...

Configuration

Introduction

Configuration targets

Getting ready

How to do it...

How it works...

There's more...

Querying the existing configuration

Getting ready

How to do it...

How it works...

There's more...

Templates

Getting ready

How to do it...

How it works...

A .git directory template

Getting ready

How to do it...

How it works...

See also

A few configuration examples

Getting ready

How to do it...

Rebase and merge setup

Expiry of objects

Autocorrect

How it works...

There's more...

Git aliases

Getting ready

How to do it...

How it works...

There's more...

The refspec exemplified

Getting ready

How to do it...

How it works...

Branching, Merging, and Options

Introduction

Managing your local branches

Getting ready

How to do it...

How it works...

There's more...

Branches with remotes

Getting ready

How to do it...

There's more...

Forcing a merge commit

Getting ready

How to do it...

There's more...

Using git reuse recorded resolution (rerere) to merge Git conflicts

How to do it...

There's more...

Compute the difference between branches

Getting ready

How to do it...

Orphan branches

Getting ready

How to do it...

There's more...

Rebasing Regularly and Interactively, and Other Use Cases

Introduction

Rebasing commits to another branch

Getting ready

How to do it...

How it works...

Continuing a rebase with merge conflicts

How to do it...

How it works...

There's more...

Rebasing selected commits interactively

Getting ready

How to do it...

There's more...

Squashing commits using an interactive rebase

Getting ready

How to do it...

There's more...

Changing the author of commits using a rebase

Getting ready

How to do it...

How it works...

Autosquashing commits

Getting ready

How to do it...

There's more...

Storing Additional Information in Your Repository

Introduction

Adding your first Git note

Getting ready

How to do it...

There's more...

Separating notes by category

Getting ready

How to do it...

How it works...

Retrieving notes from the remote repository

Getting ready

How to do it...

How it works...

Pushing Git notes to a remote repository

How to do it...

There's more...

Tagging commits in the repository

Getting ready

How to do it...

There's more...

Extracting Data from the Repository

Introduction

Extracting the top contributor

Getting ready

How to do it...

There's more...

Finding bottlenecks in the source tree

Getting ready

How to do it...

There's more...

Grepping the commit messages

Getting ready

How to do it...

The contents of the releases

How to do it...

How it works...

Finding what has been achieved in the repository in the last period

How to do it...

How it works...

There's more...

Enhancing Your Daily Work with Git Hooks, Aliases, and Scripts

Introduction

Using a branch description in a commit message

Getting ready

How to do it...

Creating a dynamic commit message template

Getting ready

How to do it...

There's more...

Using external information in a commit message

Getting ready

How to do it...

Preventing the push of specific commits

Getting ready

How to do it...

There's more...

Configuring and using Git aliases

How to do it...

How it works...

Configuring and using Git scripts

How to do it...

Setting up and using a commit template

Getting ready

How to do it...

Recovering from Mistakes

Introduction

Undo – Remove a commit completely

Getting ready

How to do it...

How it works...

Undo – Remove a commit and retain changes to files

Getting ready

How to do it...

How it works...

Undo – Remove a commit and retain changes in the staging area

Getting ready

How to do it...

How it works...

Undo – Working with a dirty area

Getting ready

How to do it...

How it works...

Redo – Recreate the latest commit with new changes

Getting ready

How to do it...

How it works...

There's more...

Revert – Undo the changes introduced by a commit

Getting ready

How to do it...

How it works...

There's more...

Reverting a merge

Getting ready

How to do it...

How it works...

There's more...

See also

Viewing past Git actions with git reflog

Getting ready

How to do it...

How it works...

Finding lost changes with git fsck

Getting ready

How to do it...

How it works...

Repository Maintenance

Introduction

Pruning remote branches

Getting ready

How to do it...

How it works...

There's more...

Running garbage collection manually

Getting ready

How to do it...

How it works...

Turning off automatic garbage collection

Getting ready

How to do it...

Splitting a repository

Getting ready

How to do it...

How it works...

There's more...

Rewriting history – changing a single file

Getting ready

How to do it...

How it works...

Creating a backup of your repositories as mirror repositories

Getting ready

How to do it...

How it works...

There's more...

A quick "how-to" submodule

Getting ready

How to do it...

There's more...

Subtree merging

Getting ready

How to do it...

How it works...

See also

Submodule versus subtree merging

Patching and Offline Sharing

Introduction

Creating patches

Getting ready

How to do it...

How it works...

There's more...

Creating patches from branches

Getting ready

How to do it...

How it works...

There's more...

Applying patches

Getting ready

How to do it...

How it works...

There's more...

Sending patches

Getting ready

How to do it...

How it works...

There's more...

Creating Git bundles

Getting ready

How to do it...

How it works...

Using a Git bundle

Getting ready

How to do it...

There's more...

Creating archives from a tree

Getting ready

How to do it...

There's more...

Tips and Tricks

Introduction

Using git stash

Getting ready

How to do it...

How it works...

There's more...

Saving and applying stashes

Getting ready

How to do it...

There's more...

Debugging with git bisect

Getting ready

How to do it...

There's more...

Using the blame command

Getting ready

How to do it...

There's more...

Coloring the UI in the prompt

Getting ready

How to do it...

There's more...

Autocompletion

Getting ready

Linux

Mac

Windows

How to do it...

How it works...

There's more...

Bash prompt with status information

Getting ready

How to do it...

How it works...

There's more...

See also

More aliases

Getting ready

How to do it...

Interactive add

Getting ready

How to do it...

There's more...

Interactive add with Git gui

Getting ready

How to do it...

Ignoring files

Getting ready

How to do it...

There's more...

See also

Showing and cleaning ignored files

Getting ready

How to do it...

There's more...

Git Providers, Integrations, and Clients

Introduction

Setting up an organization at GitHub

Getting ready

How to do it...

How it works...

There's more...

See also

Creating a repository at GitHub

Getting ready

How to do it...

How it works...

There's more...

Adding templates for issues and pull requests

Getting ready

How to do it...

How it works...

Creating a GitHub API key

Getting ready

How to do it...

How it works...

See also

Using GitHub to authenticate at Jenkins

Getting ready

How to do it...

How it works...

There's more...

See also

Triggering Jenkins builds

Getting ready

How to do it...

How it works...

There's more...

See also

Using Jenkinsfiles

Getting ready

How to do it...

How it works...

There's more...

See also

Other Books You May Enjoy

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部