title: How to fix "Filename too long error" during git clone
body: <p>I am trying to take a git clone from a particular branch of my bitbucket repository using the below command:
  <code>git clone &lt;url&gt; --branch &lt;branchname&gt;</code>.</p>
  
  <p>However, I am getting the below error while taking the clone:</p>
  
  <blockquote>
    <p>error:unable to create file foldername/nodemodules/......: Filename
    too long.</p>
  </blockquote>
  
  <p>I tried resolving this by running the below command in my git cmd
  <code>git config --system core.longpaths true</code>.</p>
  
  <p>But I am getting:</p>
  
  <blockquote>
    <p>error: could not lock config file c://.gitconfig: Permission denied
    error: could not lock config file c://.gitconfig: Invalid argument.</p>
  </blockquote>
  
  <p>How do I solve these two errors?</p>