Skip to content

Commit e8f3013

Browse files
committed
Merge pull request #246 from IceNature/chapterA
Sync A-git-in-other-environments
2 parents 3b9ab37 + 9cf1c92 commit e8f3013

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

book/A-git-in-other-environments/sections/guis.asc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ image::images/git-gui.png[`git-gui` 提交工具。]
5858
右侧窗口的上方以 diff 格式来显示当前选中文件发生了变动的地方。
5959
你可以通过右击某一区块或行从而将这一区块或行放入暂存区。
6060

61-
右侧窗口的下方是写日志和执行操作的地方。在文本框中键入日志然后点击 ``提交'' 就和执行 `git commit` 的效果差不多。
61+
右侧窗口的下方是写日志和执行操作的地方。
62+
在文本框中键入日志然后点击 ``提交'' 就和执行 `git commit` 的效果差不多。
6263
如果你想要修订上一次提交, 可以选中``修订'' 按钮,上次一提交的内容就会显示在 ``暂存区''。
6364
然后你就可以简单的对修改进行暂存和取消暂存操作,更新提交日志,然后再次点击 ``提交'' 用这个新的提交来覆盖上一次提交。
6465

book/A-git-in-other-environments/sections/powershell.asc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
(((powershell)))(((tab completion, powershell)))(((shell prompts, powershell)))
55
(((posh-git)))
66
Windows 中的普通命令行终端 (`cmd.exe`) 无法自定义 Git 使用体验,但是如果你正在使用 Powershell,那么你就十分幸运了。
7-
一个名为 Posh-Git (https://github.com/dahlbyk/posh-git[]) 的扩展包提供了强大的 tab 补全功能, 并针对提示符进行了增强,以帮助你聚焦于你的仓库状态。它看起来像:
7+
一个名为 Posh-Git (https://github.com/dahlbyk/posh-git[]) 的扩展包提供了强大的 tab 补全功能, 并针对提示符进行了增强,以帮助你聚焦于你的仓库状态。
8+
它看起来像:
89

910
.附带了 Posh-Git 扩展包的 Powershell。
1011
image::images/posh-git.png[附带了 Posh-Git 扩展包的 Powershell。]

book/A-git-in-other-environments/sections/zsh.asc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ setopt prompt_subst
2929
export RPROMPT=$'$(__git_ps1 "%s")'
3030
----
3131

32-
当你的命令行位于一个 Git 仓库目录时,在任何时候,都可以在命令行窗口右侧显示当前分支。看起来像这样:
32+
当你的命令行位于一个 Git 仓库目录时,在任何时候,都可以在命令行窗口右侧显示当前分支。
33+
它看起来像这样:
3334

3435
.自定义 `zsh` 提示符.
3536
image::images/zsh-prompt.png[自定义 `zsh` 提示符.]

0 commit comments

Comments
 (0)