git clone 出现 fatal: The remote end hung up unexpectedly(error: RPC failed; result=22, HTTP code = 422)
解决: 在项目的url后面加一个.git, 如:
git clone https://git.xxx.com/project/installer-plugin
改为:
git clone https://git.xxx.com/project/installer-plugin.git
Git 配置邮箱和用户名, 或增加安全目录时遇到 fatal: $HOME not set 的解决方案
把配置中的 global
换成 system
即可,如:
git config –global user.email “you@example.com”
git config –global user.name “Your Name”
git config –global –add safe.directory /data/jenkins/tomcat9/webapps/workspace/installer-plugin
改为:
git config –system user.email “you@example.com”
git config –system user.name “Your Name”
git config –system–add safe.directory /data/jenkins/tomcat9/webapps/workspace/installer-plugin
0 Comments