devrt / ros-devcontainer-vscode

ROS dev container for vscode
Other
174 stars 47 forks source link

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

Open rwbot opened 1 year ago

rwbot commented 1 year ago

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
tfoldi commented 9 months ago

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.