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 Bash commands in VS-Code: git init fatal: unable to access 'C:\Users?ikeh/.config/git/config': Invalid argument #17693

Closed
EikeHanel opened this issue Aug 9, 2024 · 2 comments
Labels
Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@EikeHanel
Copy link

EikeHanel commented Aug 9, 2024

While using Visual Studio Code: Version: 1.92.1 (user setup) and then the Git Bash Terminal, every Git command leads to:
$ git init
fatal: unable to access 'C:\Users?ikeh/.config/git/config': Invalid argument
(.venv)

When using PyCharm or the Windows Command Center the response is what you would expect.

I am still learning about Git and how to use it properly, so i would appreciate some help.

Kind regards,
Eike

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Aug 9, 2024
@lhecker
Copy link
Member

lhecker commented Aug 9, 2024

Your HOME environment variable in git bash is probably incorrect. If you don't really want to use Git Bash, you can also just use powershell or even cmd. Git works in any shell.

@EikeHanel
Copy link
Author

Thank you very much!
I found this regarding your post and it fixed the problem:
https://graphite.dev/guides/git-change-home-directory-git-bash

I am doing an online tutorial and they used Vs-Code and I was just confused why every other terminal worked but the one in Vs-Code didn't.

Anyway, this solves my problem I'll close this thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants