views:

806

answers:

1

I use Windows, Mac OS X and linux on a daily basis. I use git in all these environments, pulling from repos that are used by folks with different choices for line endings.

Are there definitive recommendation for setting core.autocrlf in my situation?

+7  A: 

I would recommend, as I did in this SO question, to set it to false.

If you can avoid modifying any eol (with your editor), then if would be best to push back your work with those eol unchanged (i.e. "as you found them").

VonC
Note for self: one tricky side-effect of `autocrlf` at true: http://stackoverflow.com/questions/2016404/git-status-shows-modifications-git-checkout-file-doesnt-remove-them
VonC
I agree, unfortunately autocrlf causes a ton of problems and makes conflicts appear where they don't exist.
Ibrahim