Situation
Using gedit 3.18.3 with Ubuntu 16.04 LTS.
My .git/info/exclude file is
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments. # For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# FILES
*.[oa]
*~
*.log
Makefile*
So I expect that files matching the pattern *~
are disregarded.
Issue
Yet, these are kept in the count
git status
On branch v2
Your branch is up-to-date with 'origin/v2'.
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)
modified: README.md
modified: README.md~
no changes added to commit (use "git add" and/or "git commit -a")
This behaviour is confirmed by
git ls-files --cached --ignored --exclude-standard
as suggested in Git: List files that should be ignored, but are not
Question
I would not want that README.md~
or any other *~
file shows up in the list.
This used to work like a breeze, but I cannot pin down a moment where it went wrong.
Any tips and workarounds please?