在本地的 ignore
修改 ./git/info/exclude 可以將想要在自己本機上 ignore 的檔案寫入,而不需要讓 remote 的也一起 ignore。使用格式與 .gitignore 相同。
適用於例如自己會建立一些 .plan folder 或是其它檔案,但團隊並未使用它的情形。
或是使用 command:
git update-index --skip-worktree <file-list>
修改 ./git/info/exclude 可以將想要在自己本機上 ignore 的檔案寫入,而不需要讓 remote 的也一起 ignore。使用格式與 .gitignore 相同。
適用於例如自己會建立一些 .plan folder 或是其它檔案,但團隊並未使用它的情形。
或是使用 command:
git update-index --skip-worktree <file-list>