update-index verse

This commit is contained in:
Aborn Jiang 2022-06-27 19:15:54 +08:00
parent 08cccb0d3d
commit 32206beb6a
1 changed files with 3 additions and 0 deletions

View File

@ -120,3 +120,6 @@ git remote prune origin
# 本地一个文件不再更新到远程,可以达到本地和远程不一样的效果
git update-index --skip-worktree path/to/your/file.txt
# 反向操作
git update-index --no-skip-worktree path