Ignore the annoying changes to .vscode/settings.json

This commit is contained in:
Aoran Zeng 2025-08-17 17:38:50 +08:00
parent 97f307c93c
commit 5f77b80a4b
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -0,0 +1,17 @@
# ---------------------------------------------------------------
# SPDX-License-Identifier: GPL-3.0-or-later
# ---------------------------------------------------------------
# File Name : git-ignore-vscode-settings.ps1
# File Authors : Aoran Zeng <ccmywish@qq.com>
# Created On : <2025-08-17>
# Last Modified : <2025-08-17>
#
# VS Code 的某些操作/插件会频繁地修改我们的 .vscode/settings.json
# 文件,非常非常烦人,但是该文件又应该被加入仓库,所以我们使用以下
# 命令来忽略它在本地的变化
# ---------------------------------------------------------------
git update-index --skip-worktree .\.vscode\settings.json
# 恢复方法是:
# git update-index --no-skip-worktree .\.vscode\settings.json