Skip to Content
《使用 Git 进行版本控制》第三版
book

《使用 Git 进行版本控制》第三版

by Prem Kumar Ponuthorai, Jon Loeliger
May 2025
Beginner to intermediate
548 pages
7h 40m
Chinese
O'Reilly Media, Inc.
Content preview from 《使用 Git 进行版本控制》第三版

第 III 部分. 中级技能

在第三部分中,我们将为你准备使用 Git 仓库所需的中级技能。在这一部分中,我们首先讨论提交问题,然后介绍远程仓库的概念,最后分享一些管理仓库的好方法。

版本库的历史由提交组成,有时您可能需要出于合理的原因修改提交历史。在修改提交之前,你需要知道如何找到它们。在第 8 章中,我们将教你如何查找特定的提交及其元数据。然后,在第 9 章中,我们将分享修改提交的各种技巧,其中有些技巧会对版本库历史造成破坏,有些则不会。请记住,本章所学到的技巧并不局限于严格意义上的修改提交操作,它们还能帮助你调试或理解版本库中的变更是如何产生的。接下来,我们将在第 10 章讨论如何存储和解存储对工作所做的临时更改,并讨论 reflog,它可以记录你引入的每个 ref 或提交的支持操作。

最后,在第 11 章中,我们将帮助你了解在与需要访问版本库的多人合作时,如何以最佳方式协作和共享更改。我们还将就如何发布版本库和为分布式开发建立良好的版本库结构提供一些指导。

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

学习 GitHub Actions

学习 GitHub Actions

Brent Laster
《Kubernetes 最佳实践》第二版

《Kubernetes 最佳实践》第二版

Brendan Burns, Eddie Villalba, Dave Strebel, Lachlan Evenson
GraphQL 学习指南

GraphQL 学习指南

Eve Porcello, Alex Banks

Publisher Resources

ISBN: 9798341657922