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

Share:
19,060
Smitis
Author by

Smitis

Updated on September 10, 2022

Comments

  • Smitis
    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:

    1. Set line endings to CRLF: git config --global core.autocrlf true
    2. Clear git indexes: git rm --cached -r .
    3. Rewrite indexes - pick up all the new line endings: git reset --hard

    More about line endings for windows here.