To modify the system-level Git configuration, you need to open Git Bash or Command Prompt with administrative privileges:
Command Prompt:
- Search for Command Prompt in the Start menu.
- Right-click on it and select Run as administrator.
- Once the terminal opens, run
git config --system core.longpaths true
Git Bash:
- Search for Git Bash in the Start menu.
- Right-click on it and select Run as administrator.
- Once Git Bash opens, run the same comman
git config --system core.longpaths true
By running the command with elevated privileges, you should be able to modify the system-wide Git configuration without encountering the “permission denied” error.