The msysgit FAQ on Git cannot create a filedirectory with a long path doesn’t seem up to date, as it still links to old msysgit ticket #110. However, according to later ticket #122 the problem has been fixed in msysgit 1.9, thus:
- Update to msysgit 1.9 (or later)
- Launch Git Bash
- Go to your Git repository which ‘suffers’ of long paths issue
- Enable long paths support with
git config core.longpaths true
So far, it’s worked for me very well.
Be aware of important notice in comment on the ticket #122
don’t come back here and complain that it breaks Windows Explorer,
cmd.exe, bash or whatever tools you’re using.