[VersionControl]Git Ordinary Issues Notes
Keywords: git, http, clone, Ordinary Issues Notes, Common Issues
self signed certificate in certificate chain
clone failed using http:
Cloning into 'E:\project\source'...
fatal: unable to access 'https://user@127.0.0.1/r/myrepo.git/': SSL certificate problem: self signed certificate in certificate chain
Solution:
execute git command:
git config --global http.sslVerify false
no matching host key type found. Their offer: ssh-dss
Create file named config
and paste follows under C:\Users\[User]\.ssh
Host *
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1
error: unable to delete ’test’: remote ref does not exist
Error while deleting remote branch:
error: unable to delete 'dev_wag': remote ref does not exist
Caused by:
Remote branch was deleted.
Solution:
fetch before delete:
git fetch --prune
git push origin --delete test
https://stackoverflow.com/a/59441804/1645289
fatal: early EOF. invalid index-pack output
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Disable core.compression firstly:
git config --global core.compression 0
Then pull the last commit only with depth
:
git clone --depth 1 url
Then get the whole commits.
git fetch --unshallow
At last, pull to check if status was fine.
git pull --all
Origin:
https://www.cnblogs.com/codedoge/p/11466086.html
真正的个人主义在于把你自己这块材料铸造成个东西。有时候,我觉得这个世界就好像大海上翻了船,最要紧的是救出我自己。救国需从救出你自己开始。——胡适