You can find that you haven't made any useful changes in the repository, but Git thinks that you did: the diff is in CRLF to LF or opposite. In general, this issue occurs for Windows.
In Windows, it's better to set
git config --global core.autocrlf false
In Unix-like system (Linux, MacOS), it's better to set
git config --global core.autocrlf input