I have a repo I added a gitattributes to it and was working on it fine. I sync it via dropbox to another machine. When I opened it to the other machine a bunch
gitattributes
The same issue happened with me today. Try this
git config --local core.fileMode false
as discussed here: How do I make Git ignore file mode (chmod) changes?