title: git: could not lock config file Permission denied & Invalid argument
body: <p>I updated node modules and after that got like 5000+ changes that need commiting, when I try to commit, I get the errors, that file names are too long. Ok so I use the command to allow long file names on windows, but then I get this error. Ideas?</p>
  
  <pre><code>    C:\wamp\www\site17&gt;git config --system core.longpaths true
      error: could not lock config file c:\program files\git\mingw64/etc/gitconfig: Pe
      rmission denied
      error: could not lock config file c:\program files\git\mingw64/etc/gitconfig: In
      valid argument
  </code></pre>