When I do
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(use "git add <file>..." to include in what will be committed)
git add -A
git update-index --assume-unchanged hidemeplease.json
An untracked file, in Git, is a file whose path name does not appear in the index.
Since it's not in the index, you cannot tell
git update-index to mark the index entry as "assume unchanged" or "skip worktree". But this is actually good news.
If a file is not in the index,
git status will normally complain about it, and
git add . would add it. To prevent these from occurring, list the file's path name in a
.gitignore file contains a list of path names that Git will shut up about, and not auto-add. So it should really be called
.git-shut-up-about-these-files-and-do-not-auto-add-them. That name is kind of unweildy, though, hence
Note that if a file's path name is in the index, listing that file in a
.gitignore file has no effect at all. That's why the current complaint is good news.