Addressing common errors

Windows file ending (crlf) and Unix file ending (lf) incompatibilty

git config --global core.eol lf
git config --global core.autocrlf input
git rm -rf --cached .
git reset --hard HEAD

Upgrade to macOS breaks git

On macOS, git is attached to XCode’s command line tools. It needs to be updated whenever macOS is upgraded.

xcode-select --install

References

Last updated