Git .gitignore ignores the file and changes it every time it is submitted.

  git, question

Git .gitignore ignores the file and changes it every time it is submitted.

Gitignore file content:
java/.idea/workspace.xml
doc/*.tmp
*.xml

Every commit will have workspace.xml

Because you have added him totracked fileIn the use of
git rm --cached java/.idea/workspace.xml
Remove him

Gitignore this file is used foruntrackedIgnored list of files
You use itaddMark file astrackedStatus. gitignore is invalid for it.