• 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文件是否存在

  • 相关阅读:
    猜数字游戏
    发红包程序
    实现微信摇一摇部分功能
    计算1+1/2+1/3+....+1/100的值
    约瑟夫问题
    简易计时器
    简易学生管理系统
    文件加密解密
    分鱼问题
    分橘子问题
  • 原文地址:https://www.cnblogs.com/liuhuanwen/p/8298566.html
Copyright © 2020-2023  润新知