在 TortoiseGit 中拉取时,报错:error: cannot lock ref ‘refs/remotes/origin/sc/fix’: ‘refs/remotes/origin/sc/fix/to-be-merge-order’ exists; cannot create ‘refs/remotes/origin/sc/fix’
1、在 TortoiseGit 中拉取时,报错:error: cannot lock ref ‘refs/remotes/origin/sc/fix’: ‘refs/remotes/origin/sc/fix/to-be-merge-order’ exists; cannot create ‘refs/remotes/origin/sc/fix’。如图1
2、参考:error: cannot lock ref.. ‘refs/tags’ exists; cannot create ‘refs/tags/ 。
3、在 Git Bash 中执行命令:git update-ref -d refs/remotes/origin/sc/fix/to-be-merge-order。如图2
Lenovo@DESKTOP-QLPK8QM MINGW64 /e/wwwroot/xxx-frontend (develop) $ git update-ref -d refs/remotes/origin/sc/fix/to-be-merge-order
4、再次在 TortoiseGit 中拉取,不再报错,拉取成功。如图3
近期评论