git无法提交index.lock问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhe_ge_sha_shou/article/details/86685794

今天提交代码时,git显示无法提交修改,报错如下:
报错
解决方法:
删除当前项目中.git目录中的index.lock文件即可(.git目录是隐藏目录,要开启文件夹选项->查看->显示隐藏的文件、文件夹和驱动器)
删除index.lock文件

猜你喜欢

转载自blog.csdn.net/zhe_ge_sha_shou/article/details/86685794