On Linux, Unix, Git Bash, or Cygwin, try:
rm -f .git/index.lock
On Windows Command Prompt, try:
del .git\index.lock
More Related Contents:
- Git push error ‘[remote rejected] master -> master (branch is currently checked out)’
- Git workflow and rebase vs merge questions
- What is the difference between origin and upstream on GitHub?
- What does the term “porcelain” mean in Git?
- What does the git index contain EXACTLY?
- How to git-cherry-pick only changes to certain files?
- Is it possible for git-merge to ignore line-ending differences?
- Git pre-push hooks
- How to remove sensitive data from a file in github history
- Pull a certain branch from the remote server
- Flexible vs static branching (Git vs Clearcase/Accurev)
- Jenkins – how to build a specific branch
- How do I name and retrieve a Git stash by name?
- Merge development branch with master
- Git branch strategy for small dev team [closed]
- Why does git sign with GPG keys rather than using SSH keys?
- To use on Visual Studio Code, but show “Could not read from remote repository.”
- How to protect “master” in github?
- How does Git’s transfer protocol work
- Go to particular revision
- There is nothing changed, but eclipse egit marks the file as changed
- Git submodule URL not including username?
- How can I make git show a list of the files that are being tracked?
- Is there a way to squash a number of commits non-interactively?
- Can git operate in “silent mode”?
- How do you undo “Discard all changes” in VS Code/Git
- How to colorify git errors, warnings and fatal messages?
- How to find the N largest files in a git repository?
- What’s the difference between git stash save and git stash push?
- Telling if a Git commit is a Merge/Revert commit