Cloning a repository with SourceTree
Solution 1
My solution was to change the Git version from 'Use Embedded Git' to 'Use System Git'. Because I installed GitHub on my computer earlier, it seems SourceTree chose that Git by default rather than download the embedded version when it was installed.
Solution 2
I helped a friend resolve this simply by filling in name and email address for 'Default user information', found in the General tab under Tools/Options(Windows) or SourceTree/Preferences(iOS)
Solution 3
The solution for me was to confirm my email address. So if you haven't already, check your emails and find the one from your source repository provider (e.g. bitbucket). You should have a confirm email section in the email.
Solution 4
As illustrated in this Atlassian thread, this is usually related to a credential issue.
In your case, it could be an ssh configuration problem, with no or the wrong ssh public/private keys.
Or, still for ssh, it can be related to ssh keys incorrectly registered.
Solution 5
In my case I had to dis-check this: Options > Network > add proxy server conf to Git/Mercurial
soleil
Updated on April 11, 2020Comments
-
soleil about 4 years
Can someone give me a quick walkthrough on simply cloning a repo with SourceTree?
In Bookmarks, I click on Clone Repository. For Source Path I paste in the URL which looks like this:
[email protected]:client/appname/ios-application.git
But I get "This is not a valid source path / URL".
I'm copying directly from the Repository Browser in codebase so I know the URL is correct.
What else do I need to do?
-
Origin almost 10 yearsThis wasn't the exact solution to my problem - but it pointed me in the right direction. For me, when I went to the "Git" tab, it showed that it was disabled. I enabled it, and it all worked fine after that.
-
Ian Lewis about 9 yearsThis fixed my issues and made it so local repos would clone correctly from remotes within our network.
-
MaDDoX almost 9 yearsThat simple tip solved my problem, thanks. After that, make sure to close and re-open SourceTree.
-
Sunny Shah over 8 yearsOrigin's comment helped... I had to enable git in source tree..Saved my day!!!!!!!!!!!!
-
user14764 over 8 yearsIt must be that in my case: I cannot enter my login details anywhere! (there is no field for them in the dialog to clone a repo, how swell!).
-
Enamul Hassan about 8 yearsWelcome to Stack Overflow! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.
-
lihudi over 2 yearsThis is a very polite non-answer