In Fork select console
and enter the following commands
git config --global core.eol lf
git config --global core.autocrlf false
git config --list --show-origin
https://marketplace.visualstudio.com/items?itemName=IDCTpl.Trimlineendsonsave
https://stackoverflow.com/questions/1967370/git-replacing-lf-with-crlf
Cannot find HEAD https://stackoverflow.com/questions/30809205/couldnt-set-refs-heads-master-when-commit
Try closing IDE or Text Editor to solve https://stackoverflow.com/a/53529556