error: cannot spawn git: No such file or directory问题解决办法
来源:互联网 发布:cdn.bootcss.com 知乎 编辑:程序博客网 时间:2024/05/16 09:36
之前在Android Studio上使用git都好好的,这几天不知道抽什么风,一直报错,整的我很是郁闷
报错信息如下:
error: cannot spawn : No such file or directoryfatal: unable to fork
但是很神奇的一点是Android Studio不能Commit不能Push,但是在对应文件目录下使用Git Bash使用git命令就没有问题,能正常commit和push。
但是毕竟使用Android Studio来commit和push会更方便,搜索了很久终于发现可能跟目录中包含空格有关系,我将原本安装在D:\Program Files目录下的Git删除后,重新将Git安装在了D盘下,重新设置了Android Studio中的git路径后,终于不再报错。
出错前的Git路径
D:\Program Files\Git\bin\git.exe
修改后的Git路径
D:\Git\bin\git.exe
阅读全文
0 0
- error: cannot spawn git: No such file or directory问题解决办法
- error: cannot run .git/hooks/pre-commit: No such file or directory解决方法
- Subversion error: No such file or directory
- error: QtNetwork: No such file or directory
- error: QApplication: No such file or directory
- gcc error: no such file or directory
- ios error no such file or directory
- error: no such file or directory
- clang: error: no such file or directory
- error: CreateProcess: No such file or directory
- cannot open shared object file: No such file or directory 的问题解决
- git fatal: cannot create directory at XXX中文 No such file or directory
- error: could not lock config file E:/git/Git/%USERPROFILE%/.gitconfig: No such file or directory
- C1803:ERROR Cannot open precompiled header file: 'Debug/.pch': No such file or directory
- C1803:ERROR Cannot open precompiled header file: 'Debug/XXX.pch': No such file or directory
- Cannot open precompiled header file: 'Debug/.pch': No such file or directory :error!
- fatal error C1083: Cannot open precompiled header file: 'Debug/xxx.pch': No such file or directory
- error BK1506:cannot open file StdAfx.sbr:No such file or directory
- 【51Nod1074】约瑟夫环 V2
- FZU-2205
- spring源码解析-从xml配置文件中获取bean
- ubuntu16.04下搭建ngnix+php+mysql+Redis,实现数据库的读写分离
- 将hibernate插件导入eclipse中
- error: cannot spawn git: No such file or directory问题解决办法
- C/C++题库整理(三)
- leetcode--1.Two Sum
- Python字典的fromkeys方法“疑惑”解析
- java基础(1)--反射
- SQL进阶---第一单元(第七到第十课)、Manipulation
- 一些比较实用的网站
- mysqli扩展 增删改
- How to create more time?