git clone git://github.com/jquery/jquery.git
clone 中断调用 fetch 可断点续传(需要进入项目文件夹后,执行此命令)
git fetch --recurse-submodules
git pull
git describe --tags --dirty
git remote -v
下载后,再cd到目录中执行下面的命令
git submodule update --init -f
末尾的 -f 表示强制执行
git config core.longpaths true git config --system core.longpaths true #需要管理员权限
设置core.longpaths这个配置项为true。
原因:
This error does not come for the UNIX or mac users. So they can push the long length file names to git but the issues occur only for the windows users. Because this capability is disabled by default in the Windows operating system.
使用下面的命令,可以看到返回 false 或者是 空 (看起来貌似没有反应)
git config --get core.longpaths
网络差导致的此类问题
cd 到 git clone的主目录下,执行下述命令即可。
git submodule update --init --recursive
コメント: