售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜