From 50e82b11b633d88021ab8a538f6d41772d6266cf Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Thu, 17 Nov 2022 14:04:41 +0800 Subject: [PATCH] doc: update git.md --- docs/git.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/git.md b/docs/git.md index 6f97b63b..b0fdb1ed 100644 --- a/docs/git.md +++ b/docs/git.md @@ -185,6 +185,7 @@ $ git tag my_tag ```shell $ git checkout -b origin/ ``` + ### 临时提交 @@ -256,7 +257,7 @@ $ git show [SHA] 行尾空格 | 默认被忽略,可使用`\`进行转义 行首空格 | 被正常处理,不会被忽略 -当前 `.gitignore` 文件定义规则的优先级高于上级路径 `.gitignore` 定义规则的优先级;后定义的规则优先级高于前面定义规则的优先级。 +当前 `.gitignore` 文件定义规则的优先级高于上级路径 `.gitignore` 定义规则的优先级;后定义的规则优先级高于前面定义规则的优先级 ```gitignore showLineNumbers # 忽略当前目录logs文件夹下的全部内容 @@ -389,6 +390,7 @@ $ git log --stat -M ``` ### git 配置 ssh 代理 + ```bash $ cat ~/.ssh/config @@ -712,6 +714,7 @@ $ git blame ```bash $ git commit --amend --author='Author Name ' ``` + ### 修改远程仓库的 url @@ -791,6 +794,7 @@ $ git rebase --autostash ```bash $ git fetch origin pull//head: ``` + ### 详细展示一行中的修改