美文网首页
linux git 卸载和安装

linux git 卸载和安装

作者: Mr菜头 | 来源:发表于2020-05-04 10:44 被阅读0次

git 有时一直无法拉取代码,只能重新安装了。

1、为了确保完全卸载可以使用:
sudo apt-get remove git

2、查看是否删除成功
git --version

3、更新 最新的 apt-get
apt-get update -y
apt-get upgrade -y

4、安装 最新的git
apt install git

5、查看是否安装成功
git --version

6、查找git 的位置
which -a git

相关文章

网友评论

      本文标题:linux git 卸载和安装

      本文链接:https://www.haomeiwen.com/subject/hsseghtx.html