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

GIT提交代码出错File exists.

时间:2018-11-01 16:56:16      阅读:297      评论:0      收藏:0      [点我收藏+]

标签:Edito   执行命令   bash   合并   rem   code   rmi   出错   opened   

今天合并代码的时候执行了 git status   出现了下面的执行命令
no changes added to commit (use "git add" and/or "git commit -a")
执行了 git add

就报下面的错误了


fatal: Unable to create ‘D:/3.0项目和资料/3.0项目/fanuc-部署项目/frame-static/.git/index.lock‘: File exists. Another git process seems to be running in this repository, e.g. an editor opened by ‘git commit‘. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue.

 

百度了解决方案

在当前的git bash下执行 

 rm -f ./.Git/index.lock

然后正常保存本地提交就行了

 

GIT提交代码出错File exists.

标签:Edito   执行命令   bash   合并   rem   code   rmi   出错   opened   

原文地址:https://www.cnblogs.com/sweetbullet/p/9889997.html

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