zoukankan      html  css  js  c++  java
  • git 使用问题 Unable to create '../.git/index.lock': File exists.

    git 使用问题

    今天使用git是发现无法切换分支,报错如下:

    git -c diff.mnemonicprefix=false -c core.quotepath=false checkout feature/s_mybills
    fatal: Unable to create 'E:/'''/.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.
    

    文件被锁了,删除锁文件即可
    进入到项目文件夹 执行 rm -f ./.git/index.lock 最好查看一下这个index.lock文件是否存在

  • 相关阅读:
    Kruskal算法
    拓扑排序
    邻接表有向图
    邻接矩阵的有向图
    邻接表无向图
    邻接矩阵无向图
    斐波那契堆
    二项堆
    斜堆(待补充)
    项目中maven依赖无法自动下载
  • 原文地址:https://www.cnblogs.com/liuhuanwen/p/8298566.html
Copyright © 2011-2022 走看看