Is it possible to place a .gitconfig File inside SourceTree embedded git

If the Home Environment Variable inside Windows is mapped to a Network Driver, SourceTree has unknown as user, when committing without Network connection.

Is it possible to place the .gitconfig File inside the SourceTree Folder, using the embedded git?

1 answer

If you use system git and you have an explicitly set HOME environment variable pointing to the location of the .gitconfig, it will work correctly in SourceTree and all other Git clients. (If the HOME variable is not explicitly defined, SourceTree guesses it in a different way from other software.)

If you try to solve this problem inside the embedded Git of SourceTree, your solution will only work in SourceTree. (Not sure how to do this, but I guess if you fill in the user/e-mail in the Options screen in SourceTree, it should apply to the embedded Git and be stored in the appropriate location.)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

975 views 4 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