执行checkout命令时Git崩溃了

时间:2013-04-08 17:05:13

标签: git github branch

我正在更新我所有的git repo分支。更新成功。但是,当我试图改变工作分支时,我的系统以某种方式被绞死了。我之前在branch1,但当我尝试将其master更改为git checkout master时,系统因此不得不关闭我的系统。

目前,工作分支仅为branch1。但是当我尝试git checkout master时,它会出现以下错误:

fatal: Unable to create '/home/ps/moodle/moodle_master/moodle/.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.

如何在不让我的回购损坏的情况下解决这个问题?

0 个答案:

没有答案