Visual Studio (Git provider) permanently shows "pending edit" on all files
19,060
I have heard of this before being caused by the "end of line" character in your files.
Try running this:
git config --global core.autocrlf false
Author by
Smitis
Updated on September 10, 2022Comments
-
Smitis over 1 year
I am using VS 2015 Community and Reshaper. My problem is that after pull or commit (using tortoise git client) VS still still shows "pending edit" on almost all files. "Compare with unmodified" show no change not event whitespaces. This getting me crazy because I want to see "pending edit" only on files I am actually working on ...
EDIT: I just find that problem is with CRLF setting in git. I need line end with CRLF but git returns LF.
EDIT 2: After new informations I did following step which works for me:
- Set line endings to CRLF:
git config --global core.autocrlf true
- Clear git indexes:
git rm --cached -r .
- Rewrite indexes - pick up all the new line endings:
git reset --hard
More about line endings for windows here.
- Set line endings to CRLF: