分支refs/remotes/origin/feature/US12376
被推送到origin
,但在这之前它已经被推送了多次:
Your branch is based on 'origin/feature/US12376', but the upstream is gone.
(use "git branch --unset-upstream" to fixup)
于是我使用了git branch --unset-upstream
命令(执行成功)。
继续进行工作
提交(commit)后,我尝试执行 git push --set-upstream origin feature/US12376
命令,但遇到错误:
error: update_ref failed for ref 'refs/remotes/origin/feature/US12376': cannot lock ref 'refs/remotes/origin/feature/US12376': 'refs/remotes/origin/feature/US12376/patchFix' exists; cannot create 'refs/remotes/origin/feature/US12376'
远程分支refs/remotes/origin/feature/US12376/patchFix
已被删除。
git remote prune origin
。 - crea1