Recently, I encountered a git BUG, which is very strange. Although I found a solution, I don’t know what caused it, so I will record it here.

When using Git for version management, we often use directory names to categorize the intent of development branches. For example, /feat/ XXXX, bugfix/ XXXX. Bugfix/XXXX will change to bugfix/ XXXX, and testflight/ XXXX will change to Testflight/XXXX. This BUG will most likely cause some local branches to fail to pull remote updated code.

The solution is to enter the project. The git/refs/remotes/origin/directory, find the directory name wrong folder, manually modified into the correct case.