Permission denied updating global gitconfig on Windows 7

Windows 7

$ git config --system core.longpaths true

error: could not write config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied

Edit properties of etc folder in path above

Grant Full control to Users

Now the git config should work

You may need to apply the longpath config change globally to clone a project that has long paths