【发布时间】:2016-10-26 12:39:23
【问题描述】:
我正在尝试学习如何使用 Git,并创建了一个包含 HTML、CSS 和 Javascript 文件的小项目。我从我基本上是空的项目中创建了一个分支,然后对我的代码进行了一些更改。我尝试暂存更改,但收到以下错误消息:
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 时遇到了问题,因为我不知道如何摆脱我已经到达的地方。
我有什么办法可以解决这个问题,还是我应该开始一个新的存储库?
【问题讨论】:
-
似乎肯定有另一个进程在运行 rn,可能在另一个终端选项卡中?
-
打开任务管理器,看看还有什么在运行。如果您安装了 Process Explorer,您可能还可以使用它。
-
尝试使用 git bash、命令行或 GUI 然后你可以解锁锁定的 git
标签: git