Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,782
Community Members
 
Community Events
184
Community Groups

Is my cloning stuck or is it just taking a long time?

Edited

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?

 

EDIT: Spelling

8 answers

1 accepted

3 votes
Answer accepted

Apparently it was an issue with SSH. After about 2.5 hours the clone failed and I tried again using HTTPS. It worked fine.

Hi Luca,
Same issue here. Could you fix it later?

Hello Ahmedur,

As I mentioned above, all I had to do was use HTTPS and the clone was successful.

Unfortunately I don't remember any more of the details of this issue.

Best of luck!

Like # people like this

hi Luca, how did you choose between HTTP and HTTPS? 

i think when you set up your profile

Like kooliatef likes this

is any solutions for SSH method?

Like TheKingArthas likes this

@Prabakaran Muthusamy please check my answer below

Like Anshul Shukla likes this

I had exactly the same issue on my Mac using SourceTree and a GitHub account.

This is how I solved it:

  1. Open your terminal (CMD + spacebar, type terminal, press enter).
  2. There clone any repo you want using the SSH path.
    i.e.: git clone git@github.com:MyRepoPath.git
  3. You will receive a message similar to this:
    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])
  4. Type yes and press enter.
  5. The repo should successfully be cloned.
  6. Come back to SourceTree and try to clone any other repo. It should work as well. 

 

Hope it helps! :)

Thanks, this got me 99% of the way to fixing my stuck clone job in source tree issue. There was just one additional step I had to take. 

After running the git clone command in terminal, an RSA key was added for bitbucket.org inside my known_host file. The problem was is that it appended the line at the very end of an existing RSA key for a different host. I had to break the 'bitbucket.org ssh-rsa' to it's own line and boom source tree could properly parse the known_hosts file and no longer get's stuck when cloning repos using ssh keys. 

Thanks again! 

This works perfectly, thanks!

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:

 

Screenshot2.jpg

this. also, i'm using bitbucket so i don't know if that's related, but the fact that it works nicely from the terminal indicates a bug on the sourcetree side

I could clone from URL in sourcetree successfully for a smaller git repo but when I tried same for a big repo then it got stuck forever.

Like # people like this

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.

I had to use Tortoise Git to see the progress in byte transfer to know whether actually something is happening when cloning.

Finally solved for me. I installed and opened the GitHub extension then signed in, then it asked for the browser authentication. after that, I ran the command again, and it pulled the repo into local. 

I was getting stuck at "Updating files: 100%" when cloning a git repo on Windows.

I changed to use System git instead of Embedded git, and that workaround fixed it for me.

See `Sourcetree -> Options -> Git -> Git Version`

In my case, I realized that using different Internet connection to the one when I first cloned it using SSH caused the problem so maybe try to check which Internet connection you used

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events