I’m switching to git from mercurial for my Unity version control.
I’ve setup my Unity project to handle metafiles and force text.
I’ve initialised my git repo
I’ve added a .gitignore file and a .gitattributes file to my root directory.
I’ve set my global settings for CRLF for Windows to be true using
git config --global core.autocrlf true
I can make an initial commit but any commit after this produces this error
What step am I missing?
Here is my .gitattributes file, from github
# Set the default behavior, in case people don't have core.autocrlf set. * text=auto # Explicitly declare text files you want to always be normalized and converted # to native line endings on checkout. *.c text *.h text # Declare files that will always have CRLF line endings on checkout. *.sln text eol=crlf # Denote all files that are truly binary and should not be modified. *.png binary *.jpg binary