git switch branch error solution

This error is always reported when using git to switch branches today.

Solution:

In the .git folder of the project folder (this is a hidden folder, you need to find the file index.lock that cannot be created in the file management navigation bar - tools - folder options - view - check show hidden folders) Just re-git checkout dev

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325165265&siteId=291194637