我正在追踪git
中的某个文件,但又不想跟踪它
± |master ↑1 ?:1 ✗| → git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
data/foo.txt
nothing added to commit but untracked files present (use "git add" to track)
± |master U:1 ?:1 ✗| → git update-index --assume-unchanged data/foo.txt
fatal: Unable to mark file data/foo.txt
± |master U:1 ?:1 ✗| → git rm --cached data/foo.txt
fatal: pathspec 'data/foo.txt' did not match any files
如何说服git
忽略data/foo.txt
?