Issue with SourceTree while cloning a GitHub repository

倖福魔咒の 提交于 2019-12-03 22:40:03
VonC

The exact error message is (as illustrated here):

 This is not a valid source path / URL

Possible cause:

  • proxy settings (as in this thread)
  • setup steps, with Git disabled (as in here)

    When SourceTree started for the first time, I skipped setting up Git & Mercurial in the wizard. Then I reran the wizard and chose to download and install the embedded packages.
    But it seems installing those didn't actually enable them - in the Tools -> Options dialogue they were both disabled!
    Enabling Mercurial (or Git in your case) allowed the clone dialogue to correctly identify the repo.

  • credential issues (as in here, from my old answwer)

I was facing the same issue in source tree in Mac system i.e; "This is not a valid path/url". The following solution worked for me.

  1. Go to preference in Sourcetree.
  2. Go to Advanced settings
  3. Remove the host name
  4. Again clone the project in sourcetree
  5. A prompt will come, enter the git credentials.

That's it, It resolved my issue.

Even tried all the options above, It quite dint work for me.

  • I disable the option of ssl certificate

steps :

Go to Tools -> Options -> Git. check the box of "Disable SSL certificate validation"

It worked for me.

May I also just add that I resolved this issue by installing Git through SourceTree from [SourceTree]>Tools>Options>Git.

As I'd been using mercurial exclusively on that system till then it had never been installed, and so was presenting the above described error when trying to clone.

Hopefully this helps someone with the same issue! If not, good luck!

I was facing the same issue with windows 10 and source tree. After bit research following solution worked for me. I needed to download or enable the git support in source tree.

Steps 1) Go to Tools -> Options -> Git -> Enable git support

That's it it resolved my issue. Happy coding :)

Open source tree Tools -> Options -> Git -> Update Embedded. While updating it will ask your gitlab account for linking. After that restart your system.

I had to uninstall and reinstall SourceTree before it would work. I think my antivirus (Comodo ) was blocking/sandboxing some stuff on the initial install so I disabled it for the reinstall.

I was facing the same issue with windows 10 and source tree. After bit research following solution worked for me. I needed to download or enable the git support in source tree.

Steps 1) Go to Tools -> Options -> Git -> Enable git support

That's it it resolved my issue. Happy coding :)

gp7

I had also same issue This is not a valid source path / URL and it got resolved by updating the Embedded Git of Source Tree.

This issue also manifested itself where I couldn't push or pull from previously cloned and working repositories in source tree. I complained about authentication username and password but clearly that was not the case.

Steps to resolve: Open source tree, Tools -> Options -> Click on Git Tab -> Update Embedded Git.

Adding my scenario and solution:

I have two factor authentication turned on. I couldn't see some private repositories, and couldn't clone from URL. The error I saw was:

remote: Repository not found.
fatal: repository 'https://github.com/bizzabo/web-common.git/' not found
remote: Repository not found.
fatal: repository 'https://github.com/bizzabo/web-common.git/' not found

Supposedly newer versions of SourceTree don't need a personal access token because they can authenticate directly with github, but I couldn't get this to work.

Apparently OAuth and 2FA don't mix well together -- so I changed the authentication method from oauth to basic and used the access token I generated. That did it.

Just in case someone who has multiple git accounts connected and faces this issue, I solved it by going to Tools > Options > Authentication and marking the account which has access to the repo you are trying to clone as default.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!