This may be an old reply but I’m hoping this is more useful on next who need this solution.
On linux/unix/gitbash/cygwin, try
rm -f .git/index.lock
On Windows Command Prompt, try:
del .git\index.lock
More Related Contents:
- Change first commit of project with Git? [duplicate]
- Git – how to force merge conflict and manual merge on selected file
- SSL certificate rejected trying to access GitHub over HTTPS behind firewall
- Checking out old files WITH original create/modified timestamps
- Git 1.6.4 beta on Windows (msysgit) – Unix or DOS line termination
- Warning: push.default is unset; its implicit value is changing in Git 2.0
- What exactly does the “u” do? “git push -u origin master” vs “git push origin master”
- Is it possible to include a file in your .gitconfig
- How to inject a commit between some two arbitrary commits in the past?
- Git under windows: MSYS or Cygwin?
- Whitelisting and subdirectories in Git
- Git – remote: Repository not found
- Is there any git hook for pull?
- Git diff with line numbers (Git log with line numbers)
- Use git “log” from another folder
- How to split a git repository while preserving subdirectories?
- Is it possible to pull from one repo and push to other one?
- Git On Custom SSH Port
- github: No supported authentication methods available
- How do I add files and folders into GitHub repos?
- How do I squash two non-consecutive commits?
- How do I select a merge strategy for a git rebase?
- What are the consequences of using receive.denyCurrentBranch in Git?
- Git: add vs push vs commit
- Push and pull my conda environment using git
- Git: want to iterate through all commits on branch, and list files in each commit
- Can I delete a git commit but keep the changes?
- The shortest possible output from git log containing author and date
- How to pull remote branch from somebody else’s repo
- Limiting file size in git repository