问题一:
原本有一个分支:6.96-WebView, 在 checkout 的时候,写成了 6.96-webview (webview 写成了小写),这时候远程分支存在了两个相同的分支(名称是不区分大小写的),导致在 使用 Git pull 命令时,出现
cannot lock ref 'refs/remotes/origin/6.96-WebView': is at 95b2ddb09e303b4857d6c0fd6545a5062349e00e but expected 20525f2edbef6ce8b3f6ff8c107abc25e9de973f
解决方式:
删除远程重名的分支(6.96-webview),重新拉取:
1、Git branch -r -d origin/6.96-webview 2、Git branch origin :6.96-webview 3、Git pull
参考:https://blog.csdn.net/qq_29781403/article/details/78454913