In Windows a line ending is represented by CRLF, and in Unix systems it's represented by LF. The push is just warning you that your line endings are going to be replaced for that file. It sounds like you're working between both Windows and Linux/Mac on your repository.
This can be disabled if you want by setting autocrlf to false so it doesn't convert the line endings on push. This can be done at the command line / terminal when browsed to your repository location by calling the following:
git config core.autocrlf false
Hope that helps
Kieran - Still a problem.
To be sure I uninstalled GIT completly and reinstalled SourceTree. I still get the same error message. BTW its not a warning its game over error.
I had installed SourceTree with GIT internal this time. So now there is no way to run git config core.autodrlf false its not on my computer anymore. Any other ideas?
It sounds like this should be a configuration option in SourceTree don't you think?
THIS IS VERY DANGEROUS
This answer didn't work for me. The warning was gone but the line endings were still changed SILENTLY. After pushing, I could only delete the remote repository and start over.
I could maybe have prevented this if I had double-checked with
`git config --edit`
But I didn't know about then, and I can't do it now since I found a way to configure it globally, and this DOES work for me:
`git config --global core.autocrlf true`
`git config --global --edit`
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG