File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
book/A-git-in-other-environments/sections Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ image::images/git-gui.png[`git-gui` 提交工具。]
58
58
右侧窗口的上方以 diff 格式来显示当前选中文件发生了变动的地方。
59
59
你可以通过右击某一区块或行从而将这一区块或行放入暂存区。
60
60
61
- 右侧窗口的下方是写日志和执行操作的地方。在文本框中键入日志然后点击 ``提交'' 就和执行 `git commit` 的效果差不多。
61
+ 右侧窗口的下方是写日志和执行操作的地方。
62
+ 在文本框中键入日志然后点击 ``提交'' 就和执行 `git commit` 的效果差不多。
62
63
如果你想要修订上一次提交, 可以选中``修订'' 按钮,上次一提交的内容就会显示在 ``暂存区''。
63
64
然后你就可以简单的对修改进行暂存和取消暂存操作,更新提交日志,然后再次点击 ``提交'' 用这个新的提交来覆盖上一次提交。
64
65
Original file line number Diff line number Diff line change 4
4
(((powershell)))(((tab completion, powershell)))(((shell prompts, powershell)))
5
5
(((posh-git)))
6
6
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
+ 它看起来像:
8
9
9
10
.附带了 Posh-Git 扩展包的 Powershell。
10
11
image::images/posh-git.png[附带了 Posh-Git 扩展包的 Powershell。]
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ setopt prompt_subst
29
29
export RPROMPT=$'$(__git_ps1 "%s")'
30
30
----
31
31
32
- 当你的命令行位于一个 Git 仓库目录时,在任何时候,都可以在命令行窗口右侧显示当前分支。看起来像这样:
32
+ 当你的命令行位于一个 Git 仓库目录时,在任何时候,都可以在命令行窗口右侧显示当前分支。
33
+ 它看起来像这样:
33
34
34
35
.自定义 `zsh` 提示符.
35
36
image::images/zsh-prompt.png[自定义 `zsh` 提示符.]
You can’t perform that action at this time.
0 commit comments