Solve the problem that the file name is too long to create when Git pulls the code warehouse

Problem Description

When pulling the sample code of the Hongmeng warehouse application, the sample code of the Hongmeng application is found to be downloaded successfully, but an error will be reported. The error screenshot and information are as follows: insert image description hereError message:

try/src/main/ets/pages/pagelevelstagemanagement/multicompomentssync/
parentchildcomponentsync
/parentchildpartialcontentsync/ParentChildPartialContentSyncCode.ets: Filename too long

This is because some file names in the cloned warehouse are too long

problem solved

The solution to this problem is very simple, that is, in the folder where you store the code to be cloned, open the git command window and execute the following command:

git config --global core.longpaths true

Then execute the command again git clone 仓库链接,注意: 这里要把之前下载报错的仓库先删掉哈

After configuration, you can download successfullyinsert image description here

Guess you like

Origin juejin.im/post/7258508878387232825