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的版本号。
解决方法:打开/etc/profile, 找到path manipulation那一行,在下面的if then中添加 pathmunge 命令路径 (如:pathmunge /opt/git/git-1.9.0/bin)。然后执行source /etc/profile, 再次执行git --version就可执行成功,会显示git的版本号。
相关文章推荐
- 【转】shell:date 常用方式
- [Linux vim问题解决] -bash: ./script.sh: /usr/bin/bash^M: bad interpreter: No such file or directory
- shell基础阅读
- 学习Shell的网站
- Windows脚本初探之PowerShell流程控制if
- linux shell测试网速
- shell的基础学习
- shell中的各种括号
- C 14 质数算法 来自coolshell
- SHELL 备份Mysql数据库
- 快速获取AD日常管理的powershell命令 推荐
- git bash 中文乱码
- debian root用户在shell下如何能够使用颜色
- UVa 10152 - ShellSort 龟壳排序
- linux shell实现随机数多种方法(date,random,uuid)
- 用shc加密shell脚本
- shell实现四则运算简单方法
- 【shell脚本学习】shift命令学习
- 《用chsh选择shell》-linux命令五分钟系列之十二
- 【shell脚本学习】$*与$@