1 2 |
|
解决:
1 |
|
四、安装git
检查三步骤里的一些必要包没问题后,就可进行git安装了(正常情况下解决三步骤的常见问题后,下面命令执行是不会报错了,如果还出先错误,请根据错误百度解决)
1 2 3 4 |
|
五、查看git版本出现bash:git:command not found
git --version时出现bash:git:command not found
,而进入安装目录/usr/local/git/bin
,执行./git --version
是git version 2.9.0
,可见我们git是已安装成功了,要想在非安装目录下使用git命令,解决办法如下:
打开/etc/profile
, 找到path manipulation
那一行,在下面的if then
中添加pathmunge
命令路径 (如:pathmunge /usr/loccl/git/bin
)。然后执行source /etc/profile
, 再次执行git --version就可执行成功,会显示git的版本号。
六、使用https操作git出现 :fatal: Unable to find remote helper for ‘https’
解决:
1 |
|
七、git clone报错SSL connect error
解决:
1 |
|
推荐教程:《centos教程》
以上就是centos安装git失败怎么办?的详细内容,更多文章请关注木庄网络博客!
相关阅读 >>
更多相关阅读请进入《CentOS》频道 >>