fatal: unable to access '.git/config': Permission denied


Git was working fine but when I tried to push today I got an error:


fatal: unable to access '.git/config': Permission denied


I have not changed any git settings recently.

This <a href="https://stackoverflow.com/questions/23143397/opening-git-config-permission-denied" rel="nofollow">question</a> seemed to be of a similar issue, but I am not sure how to find where the .git/config is located. I tried running git config --list --show-origin but all git commands give me the same error.

How do I get git working again? If it matters, I am on Windows (no admin privileges), using Bitbucket.


The first test is to see if the error persists with:

<ul><li>the latest Git for Windows (uncompress Git 2.13 <a href="https://github.com/git-for-windows/git/releases/download/v2.13.0.windows.1/PortableGit-2.13.0-64-bit.7z.exe" rel="nofollow">PortableGit-2.13.0-64-bit.7z.exe</a> anywhere you want, for instance in C:\Git2.13)</li> <li>a simplify PATH.</li> </ul>

In a CMD, type:

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\ set GH=C:\Git2.13 set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%

Then type 'bash', and in the bash session, try your git config or git push commands again.


  • What's the usecase for ons.ready()?
  • Undefined reference to my own library
  • Why is django manage.py syncdb failing to create new columns on my development server?
  • Changing Jupyter Notebook start up folder by modifying “start in” not working any more
  • Configure nginx to return different files to different authenticated users with the same URI
  • How to override value that appears in a dropdown in the rails_admin gem
  • Servlet stops working on Tomcat server after some hits or time
  • Best way to dynamically load an xml configuration file into a Flex4/Flash movie at runtime?
  • Web.config system.webserver errors
  • Android Google Maps API v2 start navigation
  • how to avoid repetitive constructor in children
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Setting up SourceTree to merge unity3d scenes with UnityYAMLMerge
  • $wpdb not working in file of WordPress plugin
  • Spark fat jar to run multiple versions on YARN
  • Ajax Loaded meta Tags
  • Xamarin Forms - UWP Fonts
  • Display issues when we change from one jquery mobile page to another in firefox
  • Different response to non-authenticated users and AJAX calls
  • Sony Xperia Z Tablet not found by adb
  • Javascript convert timezone issue
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • ActionScript 2 vs ActionScript 3 performance
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • How can I estimate amount of memory left with calling System.gc()?
  • Apache 2.4 - remove | delete | uninstall
  • Arrays break string types in Julia
  • Data Validation Drop Down Box Arrow Disappearing
  • PHP: When would you need the self:: keyword?
  • json Serialization in asp
  • C# - Getting references of reference
  • How do you join a server to an Active Directory (domain)?
  • Turn off referential integrity in Derby? is it possible?
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Add sale price programmatically to product variations
  • Is there any way to bind data to data.frame by some index?
  • How can i traverse a binary tree from right to left in java?
  • Unable to use reactive element in my shiny app
  • How do I use LINQ to get all the Items that have a particular SubItem?