場景:windows下面使用idea從碼雲上面拉取代碼時報錯:
fatal: unable to stat '****/***/******/****/*****/****/****.**': Filename too long。這個錯誤是git報的錯。(加紅是一個文件路徑)
在項目所在目錄下面運行以下命令即可,我是用的第一種(鼠標右鍵--> Git Bash Here --> git config --system core.longpaths true)
可以使用以下命令來修復:
git config --system core.longpaths true
也可以僅設置當前項目:
git config core.longpaths true
查看設置狀態:
git config core.longpaths