博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【Error】Another git process seems to be running in this repository, e.g.
阅读量:4208 次
发布时间:2019-05-26

本文共 398 字,大约阅读时间需要 1 分钟。

使用git add时遇到错误:

fatal: Unable to create '.../.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 processesare terminated then try again. If it still fails, a git processmay have crashed in this repository earlier:remove the file manually to continue.

解决办法:

1. 删除可能占用的进程2. 如果还不行  rm .git/index.lock

 

参考:

转载地址:http://fgmli.baihongyu.com/

你可能感兴趣的文章
面试刷题3:final finally finalize区别?
查看>>
面试刷题4:强 弱 软 幻象 引用的区别?
查看>>
面试刷题5:String StringBuffer StringBuilder区别?
查看>>
面试刷题6:反射和动态代理是什么?
查看>>
面试刷题7:int和Integer有什么区别?
查看>>
面试刷题8:Vector ArrayList LinkedList区别?
查看>>
面试刷题9:HashTable HashMap TreeMap的区别?
查看>>
面试刷题10:ConcurrentHashMap如何保证线程安全?
查看>>
面试刷题11:java系统中io的分类有哪些?
查看>>
面试刷题12:zero copy是怎么回事?
查看>>
面试刷题13:接口和抽象类有啥区别?
查看>>
面试刷题14:介绍一下你工作中用到的设计模式?
查看>>
mac安装的软件和idea的插件推荐
查看>>
面试刷题15:synchronized底层是如何实现的?
查看>>
面试刷题16:synchronized和ReentrantLock的区别?
查看>>
面试刷题17:线程两次start()会发生什么?
查看>>
面试刷题18:死锁是怎么产生的?如何定位修复?
查看>>
面试刷题19:并发工具包有哪些工具?
查看>>
面试刷题20:并发包中的线程池有哪些?
查看>>
面试刷题21:java并发工具中的队列有哪些?
查看>>