git: ‘remote-codecomit‘ is not a git command. See ‘git --help‘.
是什么情况出现该错误?
- 重复安装python后出现
做过的尝试
- 在谷歌百度各大网站上找寻没有发现跟我类似的情况
- 然后就是尝试重新安装
git
和python
但是都没有解决这个问题
目前解决方案
- 先使用
python pip
安装git-remote-codecommit
安装了python都会有pip,说命令不存在的 是否在path
中添加了环境变量,
pip install git-remote-codecommit
-
执行完成后
- 你安装python位置
D:\python\Scripts
git-remote-codecommit.exe
和git-remote-codecommit-script.py
两个文件 - 复制到你
git
目录下D:\Git\mingw64\libexec\git-core
- 这样就可以了
- 你安装python位置
-
由于时间原因目前还没有分析出来是什么原因导致了,后续有时间再具体分析,有知道的可以留言