Being able to select line endings CRLF - LF

I just started using Obsidian Sync server and I want to use Git as a backup version control system, but there are TOO many only whitespace changes in change list.
Is there anyway we can avoid this?