sourcetree can not find git config

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

2 answers

1 accepted

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\&lt;user&gt;"

Replace the value with value:

c:/Users/&lt;user&gt;/

Now should work fine!

 

Cheers,

Robert

 

Hi Robert

Excellent! That worked! 

I was searching for months for a solution to that.

Thx again, Daniel 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Agility Beta

We've moved!

A note to all watchers that we've moved to a new community home... https://community.atlassian.com/t5/Agility/ct-p/agility Please update your notification subscriptions to keep across the ...

90 views 1 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you