This post shows you how to solve the git error fatal: unable to access '\/.config/git/config

I had this error when trying to get GitHub Extension for Visual Studio to work with my GitHub repository.

To solve this error you need to add an environment variable called HOME and point it to the folder where you checkout all of your git repositories to. Mine was C:\Code\GitHub

  • Go to System
  • Click on Advanced System Settings
  • Then click on the Advanced tab
  • Now click on Environment Variables

  • Add a new System Environment Variable called HOME and set it to the folder where your GitHub repositories are.

  • Click on OK
  • Next you need to restart Visual Studio

To make sure, I restarted my PC instead of just Visual Studio and it worked great.

Let me know if it works for you.

 

Want to thank me?

If I've helped you out and you want to thank me, why not buy me a coffee?

About the author

Paul Seal

Umbraco MVP and .NET Web Developer from Derby (UK) who specialises in building Content Management System (CMS) websites using MVC with Umbraco as a framework. Paul is passionate about web development and programming as a whole. Apart from when he's with his wife and son, if he's not writing code, he's thinking about it or listening to a podcast about it.

Related Posts

Boosting your career by creating a personal brand

In this post I share the content of the talk I did at the Umbraco UK Festival 2018 about how to boos…

Read Post

How to solve the GitHub error fatal: HttpRequestException encountered

GitHub has been upgraded from using TLS 1.0 to TLS 1.2 and it has caused issues for people. This pos…

Read Post

How to create a custom 404 page handler via a package action in Umbraco

This post shows you how you can use package actions to modify, update, or set configurations for you…

Read Post

What is Clean Code?

The term “Clean Code” could be confusing for beginners. What does it mean? You clean the car, you cl…

Read Post