2015-07-28 83 views
1

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.,即使它不是第一個提交的情況。謝謝。

+0

你有沒有試過在推之前拉? – TheGeorgeous

+0

是......拉着作品完美無缺...... – dopeddude

+0

對不起,但是用戶甚至沒有提交過單個時間的情況......我的情況已經有很少的提交了,它仍然會導致相同的錯誤......(即使拉/ status/branch -vv都可以正常工作) – dopeddude

回答

0

你的本地分店被命名爲ashwini-rr,你正在推薦它的ashwini-rate-recommendations。

嘗試運行:

git push origin ashwini-rr:ashwini-rate-recommendations. 
0

你需要什麼,是要告訴git的推在阿什維尼率的建議分支什麼:

git push origin ashwini-rr:ashwini-rate-recommendations 

或者,由於分支被跟蹤,只需:

git push 
+0

我該如何測試分支是否被跟蹤......並且由此你是否意味着'上游是爲這個分支設置的' – dopeddude