git status
shows one modified file even I did not touch it. I do not have any local changes. It is build server. I tried to revert file and I run whatever I found in documentation
git fetch
git checkout -- .
git reset --hard origin/master
git restore xxx/License.txt
git status
always shows
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: xxx/License.txt
no changes added to commit (use "git add" and/or "git commit -a")
Running git diff
shows all lines removed and added. VS Code does not show any difference. I assume it is non printable character. Line ending is CRLF. Encoding UTF-8.
How to revert file?
It is Windows computer. Source provider is AWS CodeComit.