git clone出现错误git error unable to create symlink, Filename too long解决办法
by
pxz
发布于: 2018-08-15 所属分类:
工具
标签:
git
3853
<p>git clone 出现以下错误的解决办法</p>
<pre><code>error: unable to create symlink vendor/bin/codecept: Filename too long
fatal: unable to checkout working tree
...
</code></pre><ol>
<li><p>首先加 —no—checkout 参数clone<br><code>git clone --no-checkout https://gitee.com/xxxx.git .</code></p>
</li><li><p>执行配置<br><code>git config core.symlinks false</code></p>
</li><li><p>再执行<br><code>git checkout</code></p>
</li></ol>