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

fatal: unable to access '...': Couldn't resolve host '...'

David Moran March 10, 2016

Hey Guys,

I'm trying to clone a private repo that my company has onto my desktop using SourceTree.  When trying to clone, I am getting the following error:

git -c diff.mnemonicprefix=false -c core.quotepath=false clone --recursive https://dmoran@intertechmedia.com@github.com/InterTechMedia/wpbitm.git C:\SourceTree\wpbitm
Cloning into 'C:\SourceTree\wpbitm'...

warning: templates not found C:\Users\David Moran\AppData\Local\Atlassian\SourceTree\git_local\share\git-core\templates

fatal: unable to access 'https://dmoran@intertechmedia.com@github.com/InterTechMedia/wpbitm.git/': Couldn't resolve host 'intertechmedia.com@github.com'

Completed with errors, see above.

Nothing is actually cloned, it just automatically jumps to 100% without doing anything.  Are there any suggestions as to how to solve this issue?

Thank you,

-David M

2 answers

0 votes
Paul F December 17, 2016

I found that issue to happen when I pick the repo from the list when cloning a github repo, by going to the github project and copying the raw link solves it.

Basically you want your link to look like this: 

https://github.com/your-git-username-here/your-project-name-here.git
0 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 10, 2016

The host you have specified looks wrong. You should never have two @ symbols.

Is the private repo hosted on github? If not, remove the @github.com. If so, try using dmoran instead of dmoran@intertechmedia.com.

If that is your actual github username, you may need to contact github support to find out what your clone url should look like.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events