第一次遇到这个问题时,我就强行关掉了。。。。。
后来发现遇到这种情况,如果强行关掉,再重新打开,就会遇到这个问题:
fatal: Unable to create ‘E:/git/learngit/.git/index.lock’: File exists. Another git process…
以上问题就得到了解决。
然后就没管,但是git commit不写-m对我来说还真是经常发生,然后就看了这篇博客:
https://blog.csdn.net/bianliuzhu/article/details/81905343
测试:
git commit 回车
结果如下:
此时可以输入Q退出然后重新输入git commit -m “xxx”,走正常流程。
当然也可以按下E,然后回车,这种情况就是上面博客链接的处理方法,最后也能commit成功。