1. 程式人生 > >git設定忽略已提交過但本地已修改的檔案

git設定忽略已提交過但本地已修改的檔案

如何在git提交時忽略已提交過但本地已修改的檔案

git update-index –assume-unchanged [file-path]

如果需要恢復提交,使用:

git update-index –no-assume-unchanged [file-path]