Skip to content

Commit e4da805

Browse files
committed
保留source.console标签中的英文原文
1 parent 7f08638 commit e4da805

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

book/08-customizing-git/sections/attributes.asc

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,16 @@ index 0b013ca..ba25db5 100644
9696
--- a/chapter1.docx
9797
+++ b/chapter1.docx
9898
@@ -2,6 +2,7 @@
99-
本章关于开始学习 Git。 我们从介绍有关版本控制工具的一些背景知识开始,然后讲解如何在你的系统运行 Git,最后是关于如何设置 Git 开始你的工作。 通过本章的学习,你应该了解为什么 Git 这么流行,为什么你应该使用 Git 以及你应该如何设置以便使用 Git
100-
1.1. 关于版本控制
101-
什么是“版本控制”?我为什么要关心它呢? 版本控制是一种记录一个或若干文件内容变化,以便将来查阅特定版本修订情况的系统。 在本书所展示的例子中,我们对保存着软件源代码的文件作版本控制,但实际上,你可以对任何类型的文件进行版本控制。
102-
+测试: 1,2,3。
103-
如果你是位图形或网页设计师,可能会需要保存某一幅图片或页面布局文件的所有修订版本(这或许是你非常渴望拥有的功能),采用版本控制系统(VCS)是个明智的选择。 有了它你就可以将某个文件回溯到之前的状态,甚至将整个项目都回退到过去某个时间点的状态,你可以比较文件的变化细节,查出最后是谁修改了哪个地方,从而找出导致怪异问题出现的原因,又是谁在何时报告了某个功能缺陷等等。 使用版本控制系统通常还意味着,就算你乱来一气把整个项目中的文件改的改删的删,你也照样可以轻松恢复到原先的样子。 但额外增加的工作量却微乎其微。
104-
1.1.1. 本地版本控制系统
105-
许多人习惯用复制整个项目目录的方式来保存不同的版本,或许还会改名加上备份时间以示区别。 这么做唯一的好处就是简单,但是特别容易犯错。 有时候会混淆所在的工作目录,一不小心会写错文件或者覆盖意想外的文件。
99+
This chapter will be 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 setup 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 setup to do so.
100+
1.1. About Version Control
101+
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.
102+
+Testing: 1, 2, 3.
103+
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 back to a previous state, revert the entire project back 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.
104+
1.1.1. Local Version Control Systems
105+
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.
106106
----
107107

108-
Git 成功地挑出了我添加的那句话“测试: 1,2,3。”,一字不差。
108+
Git 成功地挑出了我添加的那句话“Testing: 1, 2, 3.”,一字不差。
109109
还算不上完美——格式上的变动显示不出来——但已经足够了。
110110

111111
你还能用这个方法比较图像文件。
@@ -326,17 +326,18 @@ Last commit: 312ccc8 by Jim Hill at Fri May 8 09:14:04 2015 -0700
326326
[source.console]
327327
----
328328
$ echo '$Format:Last commit: %h by %aN at %cd%n%+w(76,6,9)%B$' > LAST_COMMIT
329-
$ git commit -am 'export-subst 使用 git log 的自定义格式处理标记文本
329+
$ git commit -am 'export-subst uses git log's custom formatter
330330
331-
git archive 直接使用 git log 的 `pretty=format:` 处理器,
332-
从输出中替换掉 `$Format:` 和 `$` 之间的标记文本。
331+
git archive uses git log's `pretty=format:` processor
332+
directly, and strips the surrounding `$Format:` and `$`
333+
markup from the output.
333334
'
334335
$ git archive @ | tar xfO - LAST_COMMIT
335336
Last commit: 312ccc8 by Jim Hill at Fri May 8 09:14:04 2015 -0700
336-
export-subst 使用 git log 的自定义格式处理标记文本
337+
export-subst uses git log's custom formatter
337338
338-
git archive 直接使用 git log`pretty=format:` 处理器,
339-
从输出中替换掉 `$Format:` `$` 之间的标记文本。
339+
git archive uses git log's `pretty=format:` processor directly, and
340+
strips the surrounding `$Format:` and `$` markup from the output.
340341
----
341342

342343
The resulting archive is suitable for deployment work, but like any exported archive it isn't suitable for further development work.

0 commit comments

Comments
 (0)