git error 已解决【Another git process seems to be running in this repository, e.g. an editor opened by】

简介: git error 已解决【Another git process seems to be running in this repository, e.g. an editor opened by】

异常

fatal: Unable to create 'D:/javapub/JavaPub-Web/.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/index. lock

解决办法

删除文件 .git/index. lock

重新提交

图解

目录
相关文章
|
1月前
|
开发工具 git
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
Git -- 代码上传错误 error: failed to push some refs to ‘git@gitee.com:JMFive/uni-shop2.git‘
|
5天前
|
开发工具 git
【已解决】error: failed to push some refs to ‘git@github.com:BATdalao/Github-green.git‘
【已解决】error: failed to push some refs to ‘git@github.com:BATdalao/Github-green.git‘
10 1
|
12天前
|
开发工具 git
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
出现“error: failed to push some refs to ‘https://github.com/****.git‘”,如何解决问题
|
1月前
|
网络安全 开发工具 git
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
git修改提交路径以及强制提交——异常:error: remote origin already exists.与异常:error: failed to push some refs to的解决
33 0
|
1月前
|
缓存 开发工具 git
Git Cloning into :error: RPC failed
Git Cloning into :error: RPC failed
34 0
|
1月前
|
网络安全 数据安全/隐私保护
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
|
7月前
|
网络安全 开发工具 git
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
238 0
|
9月前
|
开发工具 git 开发者
解决fatal: not a git repository (or any of the parent directories): .git问题
解决fatal: not a git repository (or any of the parent directories): .git问题
1138 1
|
1月前
|
开发工具 git
Git:error: remote origin already exists
Git:error: remote origin already exists
28 2
|
1月前
|
开发工具 git
Git上传出现:The requested URL returned error: 403解决办法
Git上传出现:The requested URL returned error: 403解决办法
98 0