Today, when switching to the main branch on the branch, a fatal: unable to create’d]/xxxxx /. Git/index. Lock ‘: file exists. Error occurred. Please record it here for future reference
The solution is: execute RM – f operation to switch to the main branch
The specific command is: RM – F D/XXXXXX /. Git/index. Lock