git for windows 无法提交修改的处理
2014-09-02 16:09
141 查看
在git for windows里面不能commit修改,提示open shell
open shell以后,使用git add [filename],会报错:
fatal: Unable to create './.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.
网上查了一下,说输入命令: rm -f ./.git/index.lock, 尝试后发现是不行的,因为-f命令是个简写,可以尝试rm -force ./.git/index.lock
但其实这个报错的意思就是说 github目录下的的/.git/index.lock这个文件已经存在了,需要被删掉.所以可以直接手动进入/.git路径(它是隐藏文件夹,需要直接在路径里打),找到index.lock,然后手动删掉就ok了.
open shell以后,使用git add [filename],会报错:
fatal: Unable to create './.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process is running and remove the file manually to continue.
网上查了一下,说输入命令: rm -f ./.git/index.lock, 尝试后发现是不行的,因为-f命令是个简写,可以尝试rm -force ./.git/index.lock
但其实这个报错的意思就是说 github目录下的的/.git/index.lock这个文件已经存在了,需要被删掉.所以可以直接手动进入/.git路径(它是隐藏文件夹,需要直接在路径里打),找到index.lock,然后手动删掉就ok了.
相关文章推荐
- 解决 Git For Windows 无法提交
- git无法提交,存在未提交的修改,在重新合并前或者撤销更改
- 如何处理 windows中hosts文件无法修改,解决方式操作简单方便
- git提交修改到no branch处理方法
- Git for windows 修改Home路径(版本号:2.14)
- Git for Windows - #01 建立、修改、移动、删除
- 针对Github的Git工具快速配置——当Github for windows无法下载时。。。
- Git for windows无法使用
- 解决git for windows无法commit
- git for windows 无法结束node进程(windows下杀进程)
- 使用git当修改本地代码后无法同步代码的处理
- 不小心修改了/etc/fstab文件,无法启动如何处理
- CLR 无法从 COM 上下文 0x1a2740 转换为 COM 上下文 0x1a28b0,这种状态已持续 60 秒。拥有目标上下文/单元的线程很有可能执行的是非泵式等待或者在不发送 Windows 消息的情况下处理一个运行时间非常长的操作
- Git for Windows
- QT 4.6 + mingw for windows (转贴加修改)
- 修改SQLServer2008数据表无法提交
- 曾经安装过MySQL数据库,已卸载,但仍无法重新安装MySQL,提示错误"Cannot create windows service for mysql.error:0"
- 修改qt程序的图标(for windows)
- Windows 无法修改驱动器号