4

I am working on a shared branch of a Github repo, when I use git pull to get the latest changes from other developers they are showing up as changes not staged for commit.

This is occurring in files I haven't edited so my only guess is that it might be line ending related. I'm running a clean install of Windows 10 using Git for Windows from Powershell with default settings (core.autocrlf=true). It appears to be affecting all files that other developers have edited since the last time I ran git pull.

In some cases it's also flagging merge conflicts against lines of code I haven't edited but this is less common.

Ash Evans
  • 41
  • 4

1 Answers1

0

Start the same clone then pull process, but with:

git config --global core.autocrlf false

That will avoid any automgical eol (end of line) transformation.

After that, check if a .gitattributes directive is more precise.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250