Another git process seems to be running in this repository

后端 未结 28 2092
梦谈多话
梦谈多话 2020-11-29 14:34

I\'m trying to learn how to use Git and have created a small project with an HTML, CSS, and Javascript file. I made a branch from my basically empty project and then made so

相关标签:
28条回答
  • 2020-11-29 14:56

    Ok I ended up getting it to work by running '$ git rm .git/index.lock'... It's weird because I did that a few times before to no avail but hey computers right?

    0 讨论(0)
  • 2020-11-29 14:56

    For me the solution was as simple as closing my IDE and then checking out. A teammate of mine had accepted my PR and merged the code via TFS. Removing the .lock files did not work.

    0 讨论(0)
  • 2020-11-29 14:58

    use following command in case you are facing 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

    git reset and after reset command use git status, git add, and git commit -a or git commit -m "your message", git push origin master.

    0 讨论(0)
  • 2020-11-29 15:00

    Well, what helped me was simply making a copy of the repo folder with everything including the .git folder and working from the copy.

    1. I made a copy of the repo folder
    2. I navigated into the copy and deleted the .git/index.lock file & then i was able to initiate a PR
    3. I deleted my original repo folder
    4. I renamed the copy to the original

    That worked for me.

    0 讨论(0)
  • 2020-11-29 15:01

    I tried deleting .git/indexbut didn't work, I end up uninstalling go and removing all folders that has go name in it, and then installing go again, and it workerd!

    0 讨论(0)
  • 2020-11-29 15:01

    For me for any reason :

    rm .git/index.lock
    

    Didn't work, so I just went to the .git file and deleted it manually which worked fantastically.

    0 讨论(0)
提交回复
热议问题