码迷,mamicode.com
首页 > 其他好文 > 详细

GitHUb 代码提交遇到的问题以及解决办法

时间:2017-01-05 09:04:32      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:manual   other   and   crash   fatal   命令   删除   oba   rem   

git 添加代码出现以下错误:

fatal: Unable to create F:/wamp/www/ThinkPhpStudy/.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.

分析问题:出现以上问题是由于运行Git命令两次。然后锁定文件被解锁。

解决办法:如果你仍然得到这个问题,请尝试:

rm F:/wamp/www/ThinkPhpStudy/.git/index.lock

当然了也可以直接找到这个文件直接删除了即可。

 

GitHUb 代码提交遇到的问题以及解决办法

标签:manual   other   and   crash   fatal   命令   删除   oba   rem   

原文地址:http://www.cnblogs.com/tinywan/p/6251063.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!