做git status
推后一些变化的Refspec XXXXXXXX不匹配any.`显示我混帐:'虽然有些提交
On branch ashwini-rr
Your branch is ahead of 'origin/ashwini-rate-recommendations' by 8 commits.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
但这样做git push origin ashwini-rate-recommendations
告诉我下面的错误:
error: src refspec ashwini-rate-recommendations does not match any.
error: failed to push some refs to '[email protected]:xxxxx/xxxxx.git'
运行git show-ref
显示如下:
XXXXXXXXXXXX refs/heads/ashwini-rr
XXXXXXXXXXXX refs/heads/dbv
XXXXXXXXXXXX refs/remotes/origin/HEAD
XXXXXXXXXXXX refs/remotes/origin/ashwini-rate-recommendations
git --version
给我git version 2.3.2 (Apple Git-55)
push.default=matching
我无法弄清楚,为什么这是造成error: src refspec ashwini-rate-recommendations does not match any.
,即使它不是第一个提交的情况。谢谢。
你有没有试过在推之前拉? – TheGeorgeous
是......拉着作品完美无缺...... – dopeddude
对不起,但是用户甚至没有提交过单个时间的情况......我的情况已经有很少的提交了,它仍然会导致相同的错误......(即使拉/ status/branch -vv都可以正常工作) – dopeddude