• Update to msysgit 1.9 (or later)
  • Launch Git Bash
  • Got to your Git repository which 'suffers' of long paths issue
  • Enable long paths support with git config core.longpaths true

Java 代码

git config --system core.longpaths true