Unable to create ‘.git/index.lock‘: File exists

Unable to create ‘.git/index.lock‘: File exists

分类: Git&SVN |2014-03-03 14:10 |1231人阅读

Git – fatal: Unable to create ‘/.git/index.lock’: File exists.

fatal: Unable to create ‘/path/my_proj/.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.

可以试着删除 index.lock

rm -f ./.git/index.lock

时间: 2024-10-10 15:11:44

Unable to create ‘.git/index.lock‘: File exists的相关文章

EXCEPTION:FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS

FATAL: UNABLE TO CREATE ‘…GIT/INDEX.LOCK’ FILE EXISTS Hi, Today I will share you my other experience using git control system, it happened to me after I’ve created a branch, when adding my changes to remote or even committed my file I’ve started to s

[转]Git – fatal: Unable to create 'XXX/.git/index.lock’: File exists.的解决办法

参考资料: http://sheshui.me/articles/git-quickly-tutorial-20120517 http://stackoverflow.com/questions/9282632/git-index-lock-file-exists-when-i-try-to-commit-but-cannot-delete-the-file 我的说明: 我操作的是ubuntu环境.window远程 1 若在window下远程打开操作窗口(不是console),进入.git目录删

git提交代码出现错误fatal: Unable to create '项目路径/.git/index.lock': File exists.

git提交代码出现错误fatal: Unable to create '项目路径/.git/index.lock': File exists. 具体出错代码如下: 具体原因不详,在stackoverflow上查找了很久,也不清楚原因,但是stackoverflow给出了解决的方法. 解决方法: 在当前项目下打开git bash,运行如下命令: rm -f ./.Git/index.lock 只为成功找方法.大胆的尝试,下一个fun就是你的fun! git提交代码出现错误fatal: Unable

git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists.

git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists. exists 解决办法 rm -f ./.git/index.lock on Windows del .git\index.lock git 提交出现这个错误fatal: Unable to create 'project_path/.git/index.lock': File exists.

git 解决fatal: Unable to create ‘x/.git/index.lock‘’

今天在分支上切换到主分支发生fatal: Unable to create 'D:/xxxxxx/.git/index.lock': File exists.的错误,在这里记录下备查. 解决方法是: 执行rm -f操作就可以切换到主分支了. 具体命令是:rm -f D:/xxxxxx/.git/index.lock

ArcCatalog连接ArcSDE连接报:unable to create new database connection file,permission is denied

参考博文:链接 另外,若机器ip变更,sde是否受影响的问题

git提交过程中遇到的 index.lock 问题导致无法提交的解决方法

在提交代码的过程中,可能会遇到下面的问题: fatal: Unable to create 'C:/programLists/zzw-q1/.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

关于Git无法提交 index.lock的解决办法(学)

今天提交代码时,在一次提交,莫名其妙没成功后,再次用git commit -a命令时,出现以下错误,无论是用git还是TortoiseGit都会出现以下这个问题.. $ git commit -a fatal: Unable to create 'e:/git/Android/XXXXXX/.git/index.lock': File exists. If no other git process is currently running, this probably means a git p

GIT提交代码出错File exists.

今天合并代码的时候执行了 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 proce