opening .git/config : Permission denied

C:\Users\Inspiron\.git\config folder is empty and command $git config returns error: opening .git/config: permission denied.
I try to set post buffer size,but get same error.

  • Git: keep specific files unmerged
  • How to combine group of local commits to single push in IDEA?
  • Import Android Studio project from git into Android Studio (Gradle)
  • Git post-receive to checkout only those files that have been modified/added in the push?
  • How can I generate a diff for a single file between two branches in github
  • Merging two git repositories to obtain linear history
  • 4 responses to “opening .git/config : Permission denied”

      jthill said:

      Thats not a folder its the main configuration file for git.

      Here you can see the files for configuration

      Permission denied under windows its a bit strange. Check the permissions of the file. Perhaps you have removed the Permissions in the extended permissions.

      Stony said:

      I’m pretty sure it’s not supposed to be a folder. Delete it and let git create it.

      Stony said:

      Check Windows Security Properties

      On Windows 7, I was only able to fix this by right clicking on the file in explorer, clicking properties/security tab/advanced/permissions and removing the ‘deny’ permission type. chmod and chown did nothing for me.

      Stony said:

      Not only .git/config is a file, but its permission must soon (Git 2.0.X/2.1, Q3 2014) not include “world writable”.

      See commit daa22c6 by Eric Wong

      config: preserve config file permissions on edits

      Users may already store sensitive data such as imap.pass in .git/config; making the file world-readable when “git config” is called to edit means their password would be compromised on a shared system.

    Git Baby is a git and github fan, let's start git clone.