Skip to content

Commit 5f77b80

Browse files
committed
Ignore the annoying changes to .vscode/settings.json
1 parent 97f307c commit 5f77b80

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ---------------------------------------------------------------
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
# ---------------------------------------------------------------
4+
# File Name : git-ignore-vscode-settings.ps1
5+
# File Authors : Aoran Zeng <[email protected]>
6+
# Created On : <2025-08-17>
7+
# Last Modified : <2025-08-17>
8+
#
9+
# VS Code 的某些操作/插件会频繁地修改我们的 .vscode/settings.json
10+
# 文件,非常非常烦人,但是该文件又应该被加入仓库,所以我们使用以下
11+
# 命令来忽略它在本地的变化
12+
# ---------------------------------------------------------------
13+
14+
git update-index --skip-worktree .\.vscode\settings.json
15+
16+
# 恢复方法是:
17+
# git update-index --no-skip-worktree .\.vscode\settings.json

0 commit comments

Comments
 (0)