ros-devcontainer-vscode icon indicating copy to clipboard operation
ros-devcontainer-vscode copied to clipboard

Git not working; '/home/developer/.gitconfig': Is a directory

Open rwbot opened this issue 2 years ago • 1 comments

Getting an error regarding the .gitconfig whenever I try to use git. I'm unable to pull from repos and have to download the repo and then upload it. Any fix/workaround?

○ → git clone https://github.com/rwbot/repo
Cloning into 'repo'...
warning: unable to access '/home/developer/.gitconfig': Is a directory
fatal: unknown error occurred while reading the configuration files

rwbot avatar Feb 16 '23 21:02 rwbot

this happens if you do not have a ~/.gitconfig file prior to start on your host. Stop the compose, rmdir your .gitconfig folder on your host machine, then create an empty file (touch ~/.gitconfig).

next time you start your docker compose stack, it will be a file, not a directory.

tfoldi avatar Oct 08 '23 11:10 tfoldi