question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot lock .git/index

See original GitHub issue

I’m interesting in trying out this project, but having some trouble getting started.

  • If I have a multi-module project, do I need to install anything in the sub-projects?
  • Do I need to run mvn initialize or is that a stage that happens automatically when I run mvn compile or mvn test?
  • I’m not noticing anything happening. Are there any common errors I might be making?

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:26 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
reda-alaouicommented, Nov 11, 2019

Fixed correctly in https://github.com/Cosium/maven-git-code-format/commit/95941251b71814371f5f9ae72d74fbbab3e6cf38 .

Starting with 1.36, the plugin is now git commit -a compliant 🎉

1reaction
djcookecommented, Nov 7, 2019

I was having this issue as well when adding files and commiting in one command:

git commit -a -m "commit message"

It works when I break it into separate commands to add and commit:

git add -A
git commit -m "commit message"
Read more comments on GitHub >

github_iconTop Results From Across the Web

git index.lock File exists when I try to commit, but cannot delete ...
In My Case Simply go to project_path/.git and delete the index.lock file. try to ...
Read more >
Git - How to Solve `'git/index.lock': File exists` Error in ...
1)-Open terminal . 2)-Open project file location. 3)-Rum command - defaults write com.apple.finder AppleShowAllFiles YES. Now u can see hidden ...
Read more >
Understanding and Using Git's index.lock File | Pluralsight
The index.lock file prevents changes to your local repository from happening from outside of the currently running git process so as to ensure ......
Read more >
Git Error: Unable to create index.lock | The First Byte
Here's an error I recently came accross in Git when trying to push a commit. If Git is giving you something about being...
Read more >
git: index.lock': File exists. can not commit or whatever
If you have the similar issue, I suggest at first try to quite the editor, IDE, for example Xcode, unity. then try to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found