error:
1.git pull提示no tracking information
则说明本地分支和远程分支的链接关系没有创建,用命令git branch --set-upstream-to <branch-name> origin/<branch-name>
2.warning: LF will be replaced by CRLF
这是因为Windows中的换行符为 CRLF, 而在linux下的换行符为:LF。所以有时候你在执行git add .时,系统会提示:LF 将被转换成 CRLF。
使用下面的命令可以禁用自动转换。
git config --global core.autocrlf false
3.Please, commit your changes or stash them before you can merge.
1.stash
2.放弃本地修改,直接覆盖之
git reset --hard
git pull
4.error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
sudo apt-get purge git
sudo apt-get install git
git config --global http.postBuffer 2000000000
5.server certificate verification failed. CAfile: none CRLfile: none
git config --global http.sslverify false
git config --global https.sslverify false
6.remote: This repository(including wiki) size 1044.77 MB, exceeds 1024.00 MB.
进入远程仓库服务器 ---> 登录 ---> 管理 ---> 存储库GC。
查看存储库中的大文件
git rev-list --objects --all | grep -E `git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -10 | awk '{print$1}' | sed ':a;N;$!ba;s/\n/|/g'`
or
git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -15 | awk '{print$1}')" /* comment */
7.Peer’s Certificate has expired
git config --global http.sslverify false
git config --global https.sslverify false