做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