Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rwbot opened this issue Feb 16, 2023 · 1 comment
Open

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

rwbot opened this issue Feb 16, 2023 · 1 comment

Comments

@rwbot
Copy link

rwbot commented Feb 16, 2023

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
Copy link

tfoldi commented Oct 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants