Overview
I created a new branch and when switching to the new branch I received an error saying βFilename too longβ.
git branch new-branch
git switch new-branch
error: cannot stat 'PII': Filename too long
error: cannot stat 'PII': Filename too long
error: cannot stat 'PII': Filename too long
error: cannot stat 'PII': Filename too long
error: The following untracked working tree files would be overwritten by checkout:Resolution
Open Terminal as an Administrator and run the following:
git config --global core.longpaths true