Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,553,467
Community Members
 
Community Events
184
Community Groups

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

5 answers

1 accepted

6 votes
Answer 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

 

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 :) 

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?

Great. its working fine.

Thanks Robert,

It worked fine!

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
TAGS
AUG Leaders

Atlassian Community Events