git卸载不干净

卸载git

按照https://zhuanlan.zhihu.com/p/73357795安装git后版本为2.16.5但是卸载出现问题

卸载git命令

yum remove git

 

执行git version还是能看到git版本号

清理git
<1.>找到git的位置

终端命令:which -a git

<2.>cd进入git所在的目录

终端命令:cd /usr/bin/git(这个是一般的默认位置)

<3.>删除命令

终端命令:sudo rm -rf git*

ok了~

感谢

https://blog.csdn.net/qq_35868412/article/details/106467210

安装git: https://www.cnblogs.com/Hi-blog/p/How-To-Update-Git-On-CentOS7.html#_label02

 

posted @ 2021-04-20 13:55  习惯沉淀  阅读(3903)  评论(0编辑  收藏  举报