异常
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
重新提交
图解