Git:Troubleshooting:Clone
fatal: early EOF & index-pack failed
아래와 같은 에러가 발생할 수 있다.
Remote 저장소 용량이 커서 발생한 에러라고 한다. 저장소의 용량 축소를 위해 모든 branches를 checkout 받은 후 bash에서 아래의 명령을 실행한다.
# 모든 history에서 선택한 파일 삭제
git filter-branch --tree-filter "rm -rf <remove-file ex) img/*.psd>" --prune-empty -- --all
# remote 저장소에 강제 push
git push origin --all --force
Rewrite라 추가 log가 생성되지 않고, 그래프도 그대로이며, 파일도 문제가 없지만 revision number가 다 바뀌게 된다.
git SSL certificate problem
.gitconfig
를 수정해도 되고, .ssh
을 수정해도 되지만 명령행에서 당장 실행할 수 있는 방법은 아래와 같다.
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):