The URL Bitbucket provides is invalid in SourceTree
When I try to clone a repository to my local machine the URL Bitbucket provides is just wrong. The site provides me with a URL like this: https://[email protected]/pelletierscott/repo.git
I can manually get the correct URL from the browser which is like this: https://bitbucket.org/pelletierscott/repo/src/master/
Bitbucket has a dedicated service to add repo's to SourceTree but it has the same issue. Am I missing something, I'm I not understanding the process?
CodePudding user response:
When I try to clone a repository to my local machine the URL Bitbucket provides is just wrong.
No, you are wrong: default URL for your repository on BB https://bitbucket.org/pelletierscott/portfolio.git is perfectly valid and correct, while https://bitbucket.org/pelletierscott/repo/src/master/is just one of possible web-views of repo
Bitbucket has a dedicated service to add repo's to SourceTree but it has the same issue
Wrong again:
- It's not BB-service, just specially crafted URL with own protocol and parameters
- SourceTree's URL
sourcetree://cloneRepo?cloneUrl=https://bitbucket.org/pelletierscott/portfolio.git&type=bitbucket, as all and any other known and unknows protocols, have to be processed by your local OS, which have to know how to do it after full and proper installation of SourceTree
Anyway, you can always use Method 1 from Atlassian's docs
CodePudding user response:
I can manually get the correct URL from the browser which is like this: https://bitbucket.org/pelletierscott/repo/src/master/
This is not the correct URL to use with Sourcetree or git. Instead, click on the Clone button at the top right of your repository's main page and copy that URL.
