I'm very new to git and I've been cloning a repo from BitBucket cloud in SourceTree to my local machine for roughly an hour now. My internet connection is average and so I'd usually chalk this up to a large repo (I don't have access to check the repo size in BitBucket but I'm cloning an organization's entire website, so I assume it's quite large).
However, the loading bar for the cloning process is full, yet the the output is stuck on "cloning into '<path to repo>'. . ."
Apparently there's no way to accurately check the progress of a clone, but this seems like an abnormally long time. Does this sound like the cloning is stuck or has encountered an error somewhere?
I tried both SSH and HTTPS, and they both seemed to take an eternity. Then I tried cloning with Git Bash (a text-command tool), and it showed progress was slow but steady.
The problem is that SourceTree's progress bar is completely useless, since it doesn't actually show progress. Additionally, the "Show full output" checkbox also does not show full output. So it's impossible to know if anything is happening. I found that using a command-line tool gives you a lot more information than SourceTree's GUI:
I had exactly the same issue on my Mac using SourceTree and a GitHub account.
This is how I solved it:
i.e.: git clone email@example.com:MyRepoPath.git
The authenticity of host 'github.com (xxx.xxx.xxx.xxx)' can't be established.
###### key fingerprint is SHA256:******************
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])
Hope it helps! :)
This definitely seems to be a problem with Bitbucket's SSH implementation. I have been able to make SSH connections and do clones of Github repositories using SSH URLs. As soon as I did a clone of the HTTPS variant, the BitBucket variant worked. 100% this is something broken with Bitbucket. Now with Gitlab or Github offering private repos, it may not be work keeping code in Bitbucket with fundamental problems like this.