Skip to content
Search

Git:Troubleshooting:Clone

lastmod 2020-03-28created 2015-03-244 edits

fatal: early EOF & index-pack failed

The following error may occur.

fatal: early EOF
fatal: index-pack failed

This error reportedly occurs because the Remote repository is too large. To reduce the repository size, check out all branches and then run the following commands in bash.

# 모든 history에서 선택한 파일 삭제
git filter-branch --tree-filter "rm -rf <remove-file ex) img/*.psd>" --prune-empty -- --all
# remote 저장소에 강제 push
git push origin --all --force

Because this is a Rewrite, no additional log is created, the graph stays the same, and the files are fine, but all revision numbers change.

git SSL certificate problem

You can modify .gitconfig or .ssh, but the way to run it right away from the command line is as follows.

$ GIT_SSL_NO_VERIFY=true git clone ...

Problem with the SSL CA cert

If you're getting the following error when cloning a git repository:

$ git clone https://gitlab.com/mailman/mailman-bundler.git
Cloning into 'mailman-bundler'...
fatal: unable to access 'https://gitlab.com/mailman/mailman-bundler.git/': Problem with the SSL CA cert (path? access rights?)

You may be missing ca-certificates package on your system (which was probably newly installed).

To fix (on Ubuntu or Debian systems):

$ sudo apt-get install ca-certificates

See also

author Zer0 sitemap