2015-07-28 48 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