本地不跟踪指定文件修改 #myfile.txt为相对工作目录的路径 git update-index --assume-unchanged myfile.txt !添加到.gitignore文件会导致拉取不到对应文件,不符合场景