From 08cccb0d3d8152c55b67ab4eb6962be6afb6920a Mon Sep 17 00:00:00 2001 From: Aborn Jiang Date: Sat, 28 May 2022 22:27:58 +0800 Subject: [PATCH] commit by magit in emacs@2022-05-28 22:27:56 --- git/gitFreqCommand.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git/gitFreqCommand.sh b/git/gitFreqCommand.sh index c39f12e..07faaa5 100644 --- a/git/gitFreqCommand.sh +++ b/git/gitFreqCommand.sh @@ -117,3 +117,6 @@ git show commit # 更优 git gc --prune=now # 删除所有远端在orgin下所有无用的分支 git remote prune origin + +# 本地一个文件不再更新到远程,可以达到本地和远程不一样的效果 +git update-index --skip-worktree path/to/your/file.txt