From 3490715dcd7adf6c5e4671ec431d47c470fefdf9 Mon Sep 17 00:00:00 2001
From: Yuhang Guo <22561797+Sherry520@users.noreply.github.com>
Date: Tue, 20 Aug 2024 19:25:30 +0800
Subject: [PATCH] Update C-git-commands.asc
---
C-git-commands.asc | 33 +++++++++++++++------------------
1 file changed, 15 insertions(+), 18 deletions(-)
diff --git a/C-git-commands.asc b/C-git-commands.asc
index 88d6a418..a75a46d7 100644
--- a/C-git-commands.asc
+++ b/C-git-commands.asc
@@ -18,8 +18,7 @@
=== 设置与配置
-有两个十分常用的命令:`config` 和 `help`。
-从第一次调用 Git 到日常微调及阅读参考,它们一直陪伴着你。
+有两个十分常用的命令:`config` 和 `help`。从第一次调用 Git 到日常微调及阅读参考,它们一直陪伴着你。
==== git config
@@ -52,22 +51,25 @@ Git 做的很多工作都有一种默认方式。
|==============================
|编辑器 | 设置命令
|Atom |`git config --global core.editor "atom --wait"`
-|BBEdit (Mac, with command line tools) |`git config --global core.editor "bbedit -w"`
+|BBEdit (macOS, with command line tools) |`git config --global core.editor "bbedit -w"`
|Emacs |`git config --global core.editor emacs`
|Gedit (Linux) |`git config --global core.editor "gedit --wait --new-window"`
-|Gvim (Windows 64-bit) |`git config --global core.editor "'C:/Program Files/Vim/vim72/gvim.exe' --nofork '%*'"` (Also see note below)
-|Kate (Linux) |`git config --global core.editor "kate"`
+|Gvim (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\Vim\vim72\gvim.exe' --nofork '%*'"` (Also see note below)
+|Helix |`git config --global core.editor "hx"`
+|Kate (Linux) |`git config --global core.editor "kate --block"`
|nano |`git config --global core.editor "nano -w"`
|Notepad (Windows 64-bit) |`git config core.editor notepad`
-|Notepad++ (Windows 64-bit) |`git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"` (Also see note below)
+|Notepad++ (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\Notepad++\notepad++.exe' -multiInst -notabbar -nosession -noPlugin"` (Also see note below)
|Scratch (Linux)|`git config --global core.editor "scratch-text-editor"`
|Sublime Text (macOS) |`git config --global core.editor "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl --new-window --wait"`
-|Sublime Text (Windows 64-bit) |`git config --global core.editor "'C:/Program Files/Sublime Text 3/sublime_text.exe' -w"` (Also see note below)
-|TextEdit (macOS)|`git config --global --add core.editor "open -W -n"`
+|Sublime Text (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\Sublime Text 3\sublime_text.exe' -w"` (Also see note below)
+|TextEdit (macOS)|`git config --global core.editor "open --wait-apps --new -e"`
|Textmate |`git config --global core.editor "mate -w"`
-|Textpad (Windows 64-bit) |`git config --global core.editor "'C:/Program Files/TextPad 5/TextPad.exe' -m` (Also see note below)
-|Vim |`git config --global core.editor "vim"`
-|VS Code |`git config --global core.editor "code --wait"`
+|Textpad (Windows 64-bit) |`git config --global core.editor "'C:\Program Files\TextPad 5\TextPad.exe' -m` (Also see note below)
+|UltraEdit (Windows 64-bit) | `git config --global core.editor Uedit32`
+|Vim |`git config --global core.editor "vim --nofork"`
+|Visual Studio Code |`git config --global core.editor "code --wait"`
+|VSCodium (Free/Libre Open Source Software Binaries of VSCode) | `git config --global core.editor "codium --wait"`
|WordPad |`git config --global core.editor '"C:\Program Files\Windows NT\Accessories\wordpad.exe"'"`
|Xi | `git config --global core.editor "xi --wait"`
|==============================
@@ -84,7 +86,6 @@ Git 做的很多工作都有一种默认方式。
我们在 <> 一节中介绍了 `git help` 命令,同时在 <> 一节中给你展示了如何使用它来查找更多关于 `git shell` 的信息。
-
=== 获取与创建项目
有几种方式获取一个 Git 仓库。
@@ -119,7 +120,6 @@ Git 做的很多工作都有一种默认方式。
虽然在本书的其他地方都有用到此命令,但是上面这些用法是特例,或者使用方式有点特别。
-
=== 快照基础
对于基本的暂存内容及提交到你的历史记录中的工作流,只有少数基本的命令。
@@ -312,7 +312,6 @@ Git 有几个实现大部的分支及合并功能的实用命令。
我也在 <> 一节中介绍了如何使用 `-s` 标志创建一个 GPG 签名的标签,然后使用 `-v` 选项来验证。
-
=== 项目分享与更新
在 Git 中没有多少访问网络的命令,几乎所以的命令都是在操作本地的数据库。
@@ -414,7 +413,6 @@ Git 有几个实现大部的分支及合并功能的实用命令。
我们在 <> 及 <> 章节中使用 `git describe` 命令来获得一个字符串来命名我们发布的文件。
-
=== 调试
Git 有一些命令可以用来帮你调试你代码中的问题。
@@ -496,14 +494,14 @@ Git 中的一些命令是以引入的变更即提交这样的概念为中心的
==== git format-patch
-
`git format-patch` 命令用来以 mbox 的格式来生成一系列的补丁以便你可以发送到一个邮件列表中。
我们在 <> 一节中研究了一个使用 `git format-patch` 工具为一个项目做贡献的示例。
-
==== git imap-send
+
`git imap-send` 将一个由 `git format-patch` 生成的邮箱上传至 IMAP 草稿文件夹。
+
我们在 <> 一节中见过一个通过使用 `git imap-send` 工具向一个项目发送补丁进行贡献的例子。
==== git send-email
@@ -549,7 +547,6 @@ Git 有一些可以与其他的版本控制系统集成的命令。
==== git fsck
-
`git fsck` 命令用来检查内部数据库的问题或者不一致性。
我们只在 <> 这一节中快速使用了一次此命令来搜索所有的悬空对象(dangling object)。