From 572f3a4b9bde36f4cc855662b40706f362b1cf30 Mon Sep 17 00:00:00 2001 From: 7Wate Date: Fri, 10 Mar 2023 10:31:54 +0800 Subject: [PATCH] =?UTF-8?q?Git=EF=BC=9A=E5=B8=B8=E7=94=A8=E6=8A=80?= =?UTF-8?q?=E5=B7=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wiki/getting-started/Git/进阶/常用技巧.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wiki/getting-started/Git/进阶/常用技巧.md b/wiki/getting-started/Git/进阶/常用技巧.md index 41e75be6..14b9ebea 100644 --- a/wiki/getting-started/Git/进阶/常用技巧.md +++ b/wiki/getting-started/Git/进阶/常用技巧.md @@ -162,3 +162,8 @@ git config --global commit.gpgsign true git merge --squash ``` +## 忽略文件更改 + +- 未提交:添加忽略文件相对路径到 .gitignore 中即可。 + +- 已提交:`git rm --cached file`,添加忽略文件相对路径到 .gitignore 中即可。