Git was working fine but when I tried to push today I got an error:<blockquote>
fatal: unable to access '.git/config': Permission denied</blockquote>
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.Answer1:
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.