Skip to content

Commit

Permalink
[zh] syntax and some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mizar committed Oct 12, 2009
1 parent db121fe commit 2455d47
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion zh/01-introduction/01-chapter1.markdown
Expand Up @@ -192,7 +192,7 @@ Git 提供了一个叫做 git config 的工具(译注:实际是 git-config
* `~/.gitconfig`文件:用户目录下的配置文件只适用于该用户。若使用 `git config` 时用 ` --global` 选项,读写的就是这个文件。
* 当前项目的 git 目录中的配置文件(也就是工作目录中的 `.git/config` 文件):这里的配置仅仅针对当前项目有效。每一个级别的配置都会覆盖上层的相同配置,所以 `.git/config` 里的配置会覆盖 `/etc/gitconfig` 中的同名变量。

在 Windows 系统上,Git 会找寻用户主目录下的 `.gitconfig` 文件。主目录即 `$HOME` 变量指定的目录,一般都是 C:\Documents and Settings\$USER。此外,Git 还会尝试找寻 /etc/gitconfig 文件,只不过看当初 Git 装在什么目录,就以此作为根目录来定位。
在 Windows 系统上,Git 会找寻用户主目录下的 `.gitconfig` 文件。主目录即 `$HOME` 变量指定的目录,一般都是 `C:\Documents and Settings\$USER`。此外,Git 还会尝试找寻 /etc/gitconfig 文件,只不过看当初 Git 装在什么目录,就以此作为根目录来定位。

### 用户信息 ###

Expand Down
2 changes: 1 addition & 1 deletion zh/02-git-basics/01-chapter2.markdown
Expand Up @@ -18,7 +18,7 @@

$ git add *.c
$ git add README
$ git commit m 'initial project version'
$ git commit -m 'initial project version'

稍后我们再逐一解释每条命令的意思。不过现在,你已经得到了一个实际维护着若干文件的 Git 仓库。

Expand Down
2 changes: 1 addition & 1 deletion zh/04-git-server/01-chapter4.markdown
Expand Up @@ -320,7 +320,7 @@ HTTP 协议的消极面在于,相对来说客户端效率更低。克隆或者
Insert 18333fig0401.png
Figure 4-1. 基于网页的 GitWeb 用户界面

如果想知道项目的 GitWeb 长什么样,Git 自带了一个命令,可以在类似 `lighttp 或 `webrick` 这样轻量级的服务器程序上打开一个临时的实例。在 Linux 主机上通常都安装了 `lighttpd` ,这时就可以在项目目录里输入 `git instaweb` 来运行它。如果使用的是 Mac ,Leopard 预装了 Ruby,所以 `webrick` 应该是最好的选择。使用 lighttpd 以外的程序来启用 `git instaweb`, 可以通过它的 `--httpd` 选项来实现。
如果想知道项目的 GitWeb 长什么样,Git 自带了一个命令,可以在类似 `lighttpd` 或 `webrick` 这样轻量级的服务器程序上打开一个临时的实例。在 Linux 主机上通常都安装了 `lighttpd` ,这时就可以在项目目录里输入 `git instaweb` 来运行它。如果使用的是 Mac ,Leopard 预装了 Ruby,所以 `webrick` 应该是最好的选择。使用 lighttpd 以外的程序来启用 `git instaweb`, 可以通过它的 `--httpd` 选项来实现。

$ git instaweb --httpd=webrick
[2009-02-21 10:02:21] INFO WEBrick 1.3.1
Expand Down
2 changes: 1 addition & 1 deletion zh/07-customizing-git/01-chapter7.markdown
Expand Up @@ -309,7 +309,7 @@ This denies branch and tag deletion over a push across the board — no user can

## Git Attributes ##

Some of these settings can also be specified for a path, so that Git applies those settings only for a subdirectory or subset of files. These path-specific settings are called Git attributes and are set either in a `.gitattribute` file in one of your directories (normally the root of your project) or in the `.git/info/attributes` file if you don’t want the attributes file committed with your project.
Some of these settings can also be specified for a path, so that Git applies those settings only for a subdirectory or subset of files. These path-specific settings are called Git attributes and are set either in a `.gitattributes` file in one of your directories (normally the root of your project) or in the `.git/info/attributes` file if you don’t want the attributes file committed with your project.

Using attributes, you can do things like specify separate merge strategies for individual files or directories in your project, tell Git how to diff non-text files, or have Git filter content before you check it into or out of Git. In this section, you’ll learn about some of the attributes you can set on your paths in your Git project and see a few examples of using this feature in practice.

Expand Down

0 comments on commit 2455d47

Please sign in to comment.