I was onboarding onto a new project and got an error when trying to checkout the repository. The filepaths were too long. How do I fix this?

It turns out there is a git setting exactly for this issue. I just had to change my global setting. First, check the value:

view plain print about
1git config --global core.longpaths

For me, I got no response when running the command, which mean the longpaths value had no value at all. I set it to true:

view plain print about
1git config --global core.longpaths

And could check out my repo and I'm off to the races.