Skip to content

Commit

Permalink
Update git docs
Browse files Browse the repository at this point in the history
  • Loading branch information
omidraha committed Dec 17, 2018
1 parent cc4646b commit cfb3ff2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/vcs/git.rst
Original file line number Diff line number Diff line change
Expand Up @@ -751,3 +751,33 @@ Related error: Git: cannot checkout branch - error: pathspec did not match any
rc
dev
Fix git remote fatal: index-pack failed
-----------------------------

Traceback:

.. code-block:: bash
or@omid:~/ws$ git clone git@bitbucket.org:example/example.git
Cloning into 'example'...
remote: Counting objects: 39831, done.
remote: Compressing objects: 100% (16929/16929), done.
Connection to bitbucket.org closed by remote host. 163.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOFs: 99% (39758/39831), 19.57 MiB | 166.00 KiB/s
fatal: index-pack failed
Solution:

.. code-block:: bash
$ git config --global core.compression 0
$ git clone --depth 1 git@bitbucket.org:example/example.git
# retrieve the rest of the clone
$ git fetch --unshallow
# or, alternately:
$ git fetch --depth=2147483647
$ git pull --all

0 comments on commit cfb3ff2

Please sign in to comment.