草庐IT

[Bug0034] Git报错 cannot lock ref 'refs/heads/master': is at xxxx but expected xxx error: could not ...

1、问题error:update_reffailedforref'refs/heads/master':cannotlockref'refs/heads/master':isat63654e79f7ae0f902731558b3ae6679a69db09e9butexpectedec20d6ffa52920358e54703f90100bedbca4c855error:couldnotupdaterefs/heads/master2、场景由于为了方便解决冲突获取到最新远程代码(并且本地有冲突代码不想要),直接删除了本地分支想重新创建同名分支,导致报错。3、原因问题不能复现待补充4、解决方案参考