【git】 无法commit问题

今天写完代码git commit -m 一下发现提示

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.

大致意思就是你已经提交一了一个commit,该进程卡在这里了,所以无法继续提交。

上网百度了一下

使用$ rm -f ./.git/index.lock 命令,结束该进程。

即可继续提交。

你可能感兴趣的:(git,github)