Git异常处理
push 和 pull 报错
git push
时提示push failed : master, your remote branch is out of date, please fetch origin before pushing
, 但是使用pull
时报错pull failed reference refs/remotes/origin/dev_202312 not found
::: code-group
:::
作用:是确保本地 master
分支与远程完全同步,避免残留旧引用干扰
风险:reset --hard
会覆盖本地未提交的修改,请提前备份
Last updated
Was this helpful?