Skip to content

Commit

Permalink
long line wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang Xin committed Feb 8, 2011
1 parent fa5afb5 commit 7b49f62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion 01-meet-git/020-love-git.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@

::

$ svnadmin dump --incremental -r2:HEAD /path/to/repos/project1/ > hacks.dump
$ svnadmin dump --incremental -r2:HEAD \
/path/to/repos/project1/ > hacks.dump

将 svnadmin 命令创建的导出文件恢复到版本库中也非常具有挑战性,就不再详细说明了。还是来看看 Git 在这种情况下的表现吧。

Expand Down
9 changes: 6 additions & 3 deletions 01-meet-git/030-install-on-linux.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ Git 诞生于 Linux 平台并做为版本控制系统帅先服务于 Linux 核
::

$ make prefix=/usr/local doc info
$ sudo make prefix=/usr/local install-doc install-html install-info
$ sudo make prefix=/usr/local \
install-doc install-html install-info

安装完毕之后,就可以在 `/usr/local/bin` 下找到 `git` 命令。

Expand Down Expand Up @@ -120,7 +121,8 @@ Git 诞生于 Linux 平台并做为版本控制系统帅先服务于 Linux 核
::

$ make prefix=/usr/local all doc info
$ sudo make prefix=/usr/local install install-doc install-html install-info
$ sudo make prefix=/usr/local install \
install-doc install-html install-info

我在撰写本书的过程中,就通过 Git 版本库的方式安装,在 /opt/git 目录下安装了多个不同版本的 Git,以测试 Git 的兼容性。使用类似下面的脚本,可以批量安装不同版本的 Git。

Expand Down Expand Up @@ -153,7 +155,8 @@ Linux 的 shell 环境(bash)通过 bash-completion 软件包提供命令补

::

$ cp contrib/completion/git-completion.bash /etc/bash_completion.d/
$ cp contrib/completion/git-completion.bash \
/etc/bash_completion.d/

* 重新加载自动补齐脚本,使之在当前 shell 中生效。

Expand Down

0 comments on commit 7b49f62

Please sign in to comment.