Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio (Git provider) permanently shows "pending edit" on all files

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.

like image 389
Smitis Avatar asked Dec 15 '15 10:12

Smitis


1 Answers

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

like image 122
Tobiah Zarlez Avatar answered Sep 28 '22 21:09

Tobiah Zarlez