As soon as I try to open a project in sourcetree on windwos I get the following error
"fatal: unable to access '"C:\Users\<user>"/.config/git/config': Invalid argument"
why I sourcetrree loking in the directory and how to chnage that? My global Git config is on
'"C:\Users\<user>"/.gitconfig'
I tried a lot already any help welcome
Hi Daniel,
I had the same issue.
To fix it I opened Environment Variables (open Control Panel -> System -> Advanced system settigns, tab: Advanced, click Environment Variables...).
In User variables for <user> had a variable: HOME with value
"c:\Users\<user>"
Replace the value with value:
c:/Users/<user>/
Now should work fine!
Cheers,
Robert
You sir, are a star! I've been having issues with Source Tree not reading my global configuration for some reason and kept creating a local copy of .git that I didn't want.
Adding this Env Variable sorted it out :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can I solve this issue if I don't have permissions to change system variables or my .gitconfig is not located in the HOME directory?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Great. its working fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Robert,
It worked fine!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert
Excellent! That worked!
I was searching for months for a solution to that.
Thx again, Daniel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.