git for Windows cannot commit modified processing

Source: Internet
Author: User

In git for Windows, there is no commit modification, prompting the open shell

After the open shell, using git add [filename], you will get an error:

Fatal:unable to create './.git/index.lock ': File exists. If no other git process was currently running, this probably means a git process crashed in this repository earlier. Make sure no other git process are running and remove the file manually to continue.

Online check, said the input command: RM - F./.git/index.lock, after trying to find is not possible, because the-f command is a shorthand, you can try rm-force./.git/ Index.lock

But in fact, the meaning of this error is that the GitHub directory/.git/index.lock This file already exists, need to be deleted. So you can manually enter the/.git path (it is a hidden folder, you need to hit the path directly), to find Index.lock, Then manually delete it and OK.

git for Windows cannot commit modified processing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.