git报错集锦

"git:'credential-store' 不是一个 git 命令"报错解决方法

原因是之前通过修改.git-credentials文件或通过git config  -set的方式写入了配置变量,比如git登录的账号信息。

用unset命令就可以解除

git config --unset-all credential.helper

git config --unset-all credential.store

或者通过以下命令直接编辑

git config --global -e

git-receive-pack 'origin': git-receive-pack: command not found

git装在opt下所以git-receive-pack命令找不到,把正确路径链接过来即可

ln -s /opt/git/bin/git-receive-pack /usr/bin/git-receive-pack

原文地址:https://www.cnblogs.com/slqt/p/13595955.html