没有合适的资源?快使用搜索试试~ 我知道了~
首页Pro Git(2nd) 无水印pdf
资源详情
资源评论
资源推荐
Chacon
Straub
Shelve in
Software Engineering/Software Development
User level:
Beginning–Advanced
www.apress.com
SOURCE CODE ONLINE
BOOKS FOR PROFESSIONALS BY PROFESSIONALS
®
Pro Git
Pro Git (Second Edition) is your fully-updated guide to Git and its usage in the modern world. Git has
come a long way since it was first developed by Linus Torvalds for Linux kernel development. It has
taken the open source world by storm since its inception in 2005, and this book teaches you how to
use it like a pro.
Effective and well-implemented version control is a necessity for successful web projects,
whether large or small. With this book you’ll learn how to master the world of distributed version
workflow, use the distributed features of Git to the full, and extend Git to meet your every need.
Written by Git pros Scott Chacon and Ben Straub, Pro Git (Second Edition) builds on the
hugely successful first edition, and is now fully updated for Git version 2.0, as well as including an
indispensable chapter on GitHub. It’s the best book for all your Git needs.
SECOND
EDITION
9781484 200773
55999
ISBN 978-1-4842-0077-3
For your convenience Apress has placed some of the front
matter material after the index. Please use the Bookmarks
and Contents at a Glance links to access them.
v
Contents at a Glance
About the Authors �������������������������������������������������������������������������������������������������������������� xxi
Preface by Scott Chacon �������������������������������������������������������������������������������������������������� xxiii
Preface by Ben Straub ������������������������������������������������������������������������������������������������������ xxv
Chapter 1: Getting Started ■ �������������������������������������������������������������������������������������������������1
Chapter 2: Git Basics ■ �������������������������������������������������������������������������������������������������������15
Chapter 3: Git Branching ■ �������������������������������������������������������������������������������������������������43
Chapter 4: Git on the Server ■ ��������������������������������������������������������������������������������������������79
Chapter 5: Distributed Git ■ ������������������������������������������������������������������������������������������������97
Chapter 6: Github ■ �����������������������������������������������������������������������������������������������������������131
Chapter 7: Git Tools ■ �������������������������������������������������������������������������������������������������������181
Chapter 8: Customizing Git ■ ��������������������������������������������������������������������������������������������279
Chapter 9: Git and Other Systems ■ ���������������������������������������������������������������������������������307
Chapter 10: Git Internals ■ �����������������������������������������������������������������������������������������������357
Appendix A: Git in Other Environments ■ �������������������������������������������������������������������������389
Appendix B: Embedded Git in Your Applications ■ �����������������������������������������������������������401
Appendix C: Git Commands ■ �������������������������������������������������������������������������������������������407
Index ���������������������������������������������������������������������������������������������������������������������������������421
1
Chapter 1
Getting Started
This chapter is about getting started with Git. We will begin at the beginning by explaining some background on
version control tools, then move on to how to get Git running on your system and finally how to get it set up to start
working with. At the end of this chapter you should understand why Git is around, why you should use it, and you
should be all set up to do so.
About Version Control
What is “version control,” and why should you care? Version control is a system that records changes to a file or set of
files over time so that you can recall specific versions later. For the examples in this book you will use software source
code as the files being version controlled, though in reality you can do this with nearly any type of file on a computer.
If you are a graphic or web designer and want to keep every version of an image or layout (which you would most
certainly want to), a Version Control System (VCS) is a very wise thing to use. It allows you to revert files to a previous
state, revert the entire project to a previous state, compare changes over time, see who last modified something that
might be causing a problem, who introduced an issue and when, and more. Using a VCS also generally means that if
you screw things up or lose files, you can easily recover. In addition, you get all this for very little overhead.
Local Version Control Systems
Many people’s version-control method of choice is to copy files into another directory (perhaps a time-stamped
directory, if they’re clever). This approach is very common because it is so simple, but it is also incredibly error
prone. It is easy to forget which directory you’re in and accidentally write to the wrong file or copy over files you
don’t mean to.
To deal with this issue, programmers long ago developed local VCSs that had a simple database that kept all the
changes to files under revision control.
CHAPTER 1 ■ GETTING STARTED
2
One of the more popular VCS tools was a system called RCS, which is still distributed with many computers
today. Even the popular Mac OS X operating system includes the rcs command when you install the Developer Tools.
RCS works by keeping patch sets (that is, the differences between files) in a special format on disk; it can then
re-create what any file looked like at any point in time by adding up all the patches.
Figure 1-1. Local version control
剩余440页未读,继续阅读
yinkaisheng-nj
- 粉丝: 763
- 资源: 6953
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0