您的位置:首页 > 运维架构 > Shell

bash:git:command not found解决方法

2014-03-11 08:50 393 查看
执行git --version时出现bash:git:command not found。

解决方法:打开/etc/profile, 找到path manipulation那一行,在下面的if then中添加 pathmunge 命令路径 (如:pathmunge /opt/git/git-1.9.0/bin)。然后执行source /etc/profile, 再次执行git --version就可执行成功,会显示git的版本号。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: