From 2fa0f4b382bb5617893f35cf5e91093486cbd6e0 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sun, 25 Oct 2026 18:52:00 +0800 Subject: [PATCH] Update Git.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fast-forward 拼写;.ssh 目录位于用户主目录;引号改为全角。 --- notes/Git.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notes/Git.md b/notes/Git.md index dbc57e22..e7e53de1 100644 --- a/notes/Git.md +++ b/notes/Git.md @@ -93,7 +93,7 @@ Creating a new branch is quick AND simple. ## Fast forward -"快进式合并"(fast-farward merge),会直接将 master 分支指向合并的分支,这种模式下进行分支合并会丢失分支信息,也就不能在分支历史上看出分支信息。 +“快进式合并”(fast-forward merge),会直接将 master 分支指向合并的分支,这种模式下进行分支合并会丢失分支信息,也就不能在分支历史上看出分支信息。 可以在合并时加上 --no-ff 参数来禁用 Fast forward 模式,并且加上 -m 参数让合并时产生一个新的 commit。 @@ -121,7 +121,7 @@ HEAD is now at 049d078 added the index file (To restore them type "git stash app Git 仓库和 Github 中心仓库之间的传输是通过 SSH 加密。 -如果工作区下没有 .ssh 目录,或者该目录下没有 id_rsa 和 id_rsa.pub 这两个文件,可以通过以下命令来创建 SSH Key: +如果用户主目录下没有 .ssh 目录,或者该目录下没有 id_rsa 和 id_rsa.pub 这两个文件,可以通过以下命令来创建 SSH Key: ``` $ ssh-keygen -t rsa -C "youremail@example.com"