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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,270 views 19 18
Join discussion

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