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.

  • Difference between HEAD and master
  • git status - is there a way to show changes only in a specific directory?
  • How do I merge a pull request on someone else's project in git?
  • How to move HEAD back to a previous location? (Detached head)
  • Stop git from silently clobbering ignorefiles (bug in git?)?
  • Git: Is there a quick way to see when was the last time that git merge master was done on the current working branch?
  • Git rebase master and multiple branches
  • Updating project version: Composer
  • Git: Cannot rebase because of uncommitted changes
  • where should I put .gitignore to affect all projects?
  • Azure Continuous Deployment - Code First Migration seeding issue (MVC 5)
  • Invoking external difftool from git-gui?
  • 4 Solutions collect form web for “opening .git/config : Permission denied”

    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.

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

    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.

    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.