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://email@example.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://firstname.lastname@example.org@github.com/InterTechMedia/wpbitm.git/': Couldn't resolve host 'email@example.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?
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 firstname.lastname@example.org.
If that is your actual github username, you may need to contact github support to find out what your clone url should look like.
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:
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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...
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!
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