in git bash for command $ git init ->says fatal: unable to access 'C:\Users ame/.config/git/config': Invalid argument .here dir was C:\Users\name/.config/git/config #21937

Closed
opened 2026-01-31 07:58:51 +00:00 by claunia · 2 comments
Owner

Originally created by @nafeu-khan on GitHub (Jul 7, 2024).

Windows Terminal version

No response

Windows build number

No response

Other Software

No response

Steps to reproduce

\n is going to be a newline here in git bash . c\users\name it should be valid path in git bash terminal

Expected Behavior

should create .git folder

Actual Behavior

in git bash for command $ git init ->says fatal: unable to access 'C:\Users ame/.config/git/config': Invalid argument .here dir was C:\Users\name/.config/git/config

Originally created by @nafeu-khan on GitHub (Jul 7, 2024). ### Windows Terminal version _No response_ ### Windows build number _No response_ ### Other Software _No response_ ### Steps to reproduce \n is going to be a newline here in git bash . c\users\name it should be valid path in git bash terminal ### Expected Behavior should create .git folder ### Actual Behavior in git bash for command $ git init ->says fatal: unable to access 'C:\Users ame/.config/git/config': Invalid argument .here dir was C:\Users\name/.config/git/config
Author
Owner

@zadjii-msft commented on GitHub (Jul 8, 2024):

What is your HOME environment variable set to? Have you made any other modifications to your git bash setup?

If you've replaced your actual username with name in the above post, can you share the actual output? At least one post I read on this topic suggested that it might be due to an errant ' in a username

@zadjii-msft commented on GitHub (Jul 8, 2024): What is your `HOME` environment variable set to? Have you made any other modifications to your git bash setup? If you've replaced your actual username with `name` in the above post, can you share the actual output? At least one post I read on this topic suggested that it might be due to an errant `'` in a username
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jul 12, 2024):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Jul 12, 2024): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21937