今天git 无法提交
提示
fatal: Unable to create '/Users/apple/LXKJ/项目/LXGitHub/QJShop_iOS/.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.
解决办法
显示文件系统隐藏文件夹
defaults write com.apple.finder AppleShowAllFiles -bool true
找到工程路径.git目录下删除index.lock 文件