Menu

git error fatal: cannot create directory because filename too long

A too long file name is an issue while cloing any git repo. We can set a git property longpaths=true to allow the too long file name for git. Following the command and their scope.

  1. For all users

    git config --system core.longpaths true
  2. For current user

    git config --global core.longpaths true
  3. Only for current clone

    git clone -c core.longpaths=true

No comments:

Post a Comment