warning: LF will be replaced by CRLF in Lib/site-packages/pip/_vendor/pkg_resources/__init__.py. The file will have its original line endings in your working directory code example
Example 1: warning: LF will be replaced by CRLF
git config --global core.autocrlf true
Example 2: warning: LF will be replaced by CRLF in
$ git config --global core.autocrlf input