Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why did "git clone" stop after unpacking object:100%, done

Tags:

git

clone

github

$ git fetch pb
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 9 (delta 0), reused 3 (delta 0)
Unpacking objects: 100% (9/9), done.

So I can not clone any code from server. Could anyone help me?

like image 926
user1749147 Avatar asked Oct 16 '12 06:10

user1749147


People also ask

Why git clone is not working?

If you try to clone [email protected]:user/repo. git , but the repository is really named User/Repo you will receive this error. To avoid this error, when cloning, always copy and paste the clone URL from the repository's page.

How many times do you need to clone a git repository?

Purpose: repo-to-repo collaboration development copy Like git init , cloning is generally a one-time operation. Once a developer has obtained a working copy, all version control operations and collaborations are managed through their local repository.

What happen if I git cloned an existing?

Git clone is used to copy an existing Git repository into a new local directory. The Git clone command will create a new local directory for the repository, copy all the contents of the specified repository, create the remote tracked branches, and checkout an initial branch locally.

Can git clone be resumed?

Best AnswerNo, cloning cannot be resumed, if it's interrupted you'd need to start over.


2 Answers

On an empty repo, the fetch will do nothing else (as mentioned in "What does the output of git pull actually mean?").
It will update FETCH_HEAD.

Only a git pull would update local branch and the working tree.

But if the command hung after that, as illustrated by this tweet, it could be a GitHub status issue.

October 15, 2012

04:04 pm PST
GitHub Pages was down from 3:50-3:59 pm. We're investigating the cause.

October 14, 2012 – minor interruption occurred

02:55 am PST
All connectivity issues have been resolved.

02:47 am PST
We are investigating errors with GitHub.com and API 
like image 62
VonC Avatar answered Oct 02 '22 00:10

VonC


I had this same problem. Found the answer here. Two options, one is the ugly way and involves Ctrl-c'ing when your pull freezes, then running git fsck and git merge on the dangling commit. But there's a better way, if it works, through a method on this blog which describes how to use CNTLM.

Git doesn't work well with NTLM proxies, which is what you'll have in most corporate environments. The solution is to setup a local proxy that redirects traffic, which is what CNTLM does.

Install CNTLM, modify the .ini file to inlcude your user id, domain, password, and proxy settings. Start the proxy, then run this in your Git Bash: git config --global http.proxy localhost:3128

Should now work!

like image 34
pedram Avatar answered Oct 01 '22 22:10

pedram