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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

733 views 1 3
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