Git from Beginner to Mastery
Tags
Summary
Editor's review
Who it's for
A good fit for
- Programming beginners new to version control who need to systematically build Git habits
- Developers with some Git basics who often struggle with conflicts and branch management in collaboration
- Tech leads or project managers who need to set version-control standards for their teams
- Software engineering students who want to categorize and solve versioning problems in daily development
Not a good fit for
- Complete beginners with no command-line experience who have not yet started learning programming
- Advanced researchers who want to delve into Git's underlying storage principles and source code implementation
- Readers who only want a single-command quick reference and are unwilling to practice by situation
Reading tips
- Read the first two chapters to build an overall grasp of repositories, commits, and branches, then manually reproduce each chapter's situations one by one
- For chapters on merge conflicts or version rollback, try solving the problem yourself first, then check the book's commands and compare the differences to deepen understanding
- After each chapter, compile a note in your own project or practice repository mapping commonly used commands to their scenarios
About the publisher
Peking University Press is a comprehensive university press whose publishing areas cover classical literature, popular science, social culture, world history, Western philosophy, and culture. Its catalogue contains 6,031 titles, with representative books including A Dream of Red Mansions, Relativity: The Special and General Theory (15th Edition) (with Einstein's classic papers on unified field theory and other topics), Elements, Conics, The Aristocratic Families of the Eastern Jin, The Philosophy of Mythology (Volume I), The Philosophy of Mythology (Volume II), and The Origin of Continents and Oceans. Representative authors include Cao Xueqin, Zhou Ruchang, Albert Einstein, Euclid, Apollonius, Tian Yuqing, Schelling, and Xian Gang. The press has developed distinctive strengths in classical Chinese literature and in the translation of Western philosophical classics, while also covering scientific classics and social and cultural studies. As public information is limited, this description is based only on the books in the catalogue and offers no further extrapolation.
Contents
- 版权信息
- 内容提要
- 前言
- 第1章 Git入门
- 1.1 Git概述
- 1.2 Git与其他版本控制系统的差异
- 1.3 常见问题
- 第2章 环境安装
- 2.1 在Windows操作系统中安装Git
- 2.2 在macOS操作系统中安装Git
- 2.3 在Linux操作系统中安装Git
- 2.4 图形界面工具
- 第3章 终端机/命令提示符
- 3.1 终端机及常用命令介绍
- 3.2 超简明的Vim操作介绍
- 第4章 设置Git
- 4.1 用户设置
- 4.2 可以给每个项目设置不同的作者吗
- 4.3 其他方便的设置
- 第5章 开始使用Git
- 5.1 新增、初始Repository
- 5.2 把文件交给Git管控
- 5.3 工作区、暂存区与存储库
- 5.4 查看记录
- 5.5 如何在Git中删除文件或变更文件名
- 5.6 修改Commit记录
- 5.7 追加文件到最近一次的Commit
- 5.8 新增目录
- 5.9 有些文件不想放在Git中
- 5.10 查看特定文件的Commit记录
- 5.11 这行代码是谁写的
- 5.12 不小心把文件或目录删除了
- 5.13 刚才的Commit后悔了,想要拆掉重做
- 5.14 不小心使用hard模式Reset了某个Commit,还救得回来吗
- 5.15 HEAD是什么
- 5.16 可以只Commit一个文件的部分内容吗
- 5.17 那个长得很像乱码的SHA-1值是怎样算出来的
- 5.18 .git目录中有什么?Part 1
- 5.19 .git目录中有什么?Part 2
- 第6章 使用分支
- 6.1 使用分支的原因
- 6.2 开始使用分支
- 6.3 对分支的误解
- 6.4 合并分支
- 6.5 为什么我的分支没有“小耳朵”
- 6.6 合并过的分支要保留吗
- 6.7 不小心把还没合并的分支删除了,救得回来吗
- 6.8 另一种合并方式(使用Rebase)
- 6.9 合并发生冲突了怎么办
- 6.10 为什么都说在Git中开分支“很便宜”
- 6.11 Git如何知道现在是在哪一个分支
- 6.12 HEAD也有缩写
- 6.13 可以从过去的某个Commit再创建一个新的分支吗
- 第7章 修改历史记录
- 7.1 修改历史信息
- 7.2 把多个Commit合并为一个Commit
- 7.3 把一个Commit拆解成多个Commit
- 7.4 想要在某些Commit之间再加新的Commit
- 7.5 想要删除某几个Commit或调整Commit的顺序
- 7.6 Reset、Revert与Rebase指令有什么区别
- 第8章 标签
- 8.1 使用标签
- 8.2 标签与分支有什么区别
- 第9章 其他常见的情况及一些冷知识
- 9.1 手边的工作做到一半,临时要切换到别的任务
- 9.2 不小心把账号密码放在Git中了,想把它删掉该怎么办
- 9.3 怎样把文件真正地从Git中移除
- 9.4 你知道Git有资源回收机制吗
- 9.5 断头(detached HEAD)是怎么一回事
- 第10章 远端共同协作——使用GitHub
- 10.1 GitHub概述
- 10.2 将内容Push到GitHub上
- 10.3 Pull下载更新
- 10.4 为什么有时候推不上去
- 10.5 从服务器上取得Repository
- 10.6 Clone与Pull指令的区别
- 10.7 与其他开发者的互动——使用PullRequest(PR)
- 10.8 怎样跟上当初fork的项目的进度
- 10.9 怎么删除远端的分支
- 10.10 听说git push -f指令很可怕,什么情况下可以使用呢
- 10.11 使用GitHub免费制作个人网站
- 10.12 一定要有GitHub才能得到他人更新的文件吗
- 第11章 使用Git Flow
- 11.1 Git Flow是什么?为什么需要它
FAQ
Is this book suitable for someone with no Git background at all?
Can the situations simulated in the book be applied directly at work?
What level can I reach after finishing the book?
Comments
Find this book
This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.
About the author
Gao Jianlong is an author about whom little public information is available. The Chinese book database currently holds only one work by him, Git from Beginner to Mastery. Judging from the title and its usual category of programming and design, his writing focuses on introductory and intermediate instruction in version control tools. The book is aimed at readers who want to gain a systematic command of Git, and it typically covers repository creation, commits, branch management, remote collaboration, and common troubleshooting, with an emphasis on explaining version control workflows clearly and practically. As far as the available information goes, Gao Jianlong has left no verifiable record of his résumé, positions, or awards, so his personal background, professional identity, and full body of work remain unclear. What can be confirmed is that this book is the main achievement he has presented to readers so far, and that it offers introductory guidance to programmers new to Git.