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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sourcectree will not use Windows 10 HOSTS file and cannot resolve DNS

We are in the process of getting a local 2019 DevOps server in place.  The DevOps server is located behind our companies VPN.  We've setup a SSL certificate against a named version of that server and have updated our local HOSTS file on Windows 10 to point the IP address to that named URL. 

When attempting to "Add an account..." within SourceTree, we get the following errors:

  • When using "https://<site url>/<company>" in the Host URL, we get the follow error:  Failed to check login for user [<user>] API resource location <GUID> is not registered on <site url>
  • When using "https://<site url>/<company>/<project>/_git/<repo>" in the Host URL, we get the following error:   Failed to check login for user [<user>] Page not found.

When attempting to bypass this entirely by just going to "Clone", I also get similar errors:

  • When using "https://<site url>/<company>/<project>/_git/<repo>" or "http", we get the following error:  This is not a valid source path / URL.  Error: System.ComponentModel.Win32Exception: The system cannot find the file specified.

But when I access this with the IP address instead of the <site url>, I can clone the repository.  Unfortunately, in doing so, I am not authenticated.

All signs seem to point to the fact that Sourcetree is not using the Windows 10 HOSTS file.  Is there any way to force this lookup between IP and named URL?  We do not have an internal DNS server.  I need to be able to have Sourcetree see the named URL and resolve to the internal IP.

1 answer

For what its worth. the powershell command of

git clone https://<site url>/<company>/<project>/_git/<repo>

works just fine and pulls whole repo down.  

I would really prefer to use SourceTree as our GIT GUI but will have to move on if I cannot get this to properly pull down.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published 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...

5,719 views 4 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you