Git is not respecting .gitignore

git rm -rf --cached .
git add .

Line endings (“LF will be replaced by CRLF”)

Files with Unix-style (LF) line endings will be replaced by Windows-style (CRLF) line endings when running on Windows. This is likely because Git’s core.autocrlf setting is true.

To prevent this:

git config --system core.autocrlf false            # per-system solution
git config --global core.autocrlf false            # per-user solution
git config --local core.autocrlf false             # per-project solution

Note that this change is only for future files. To renormalize line endings for existing files:

git add --renormalize .

Learn more.

SSL certificate problem: unable to get local issuer certificate

git config --global http.sslbackend schannel