[英]Github error: src refspec BRANCHNAME does not match any
I forked a repo on GitHub. 我在GitHub上创建了一个仓库。 Created a new branch from website (named "anythingslider"). 从网站创建了一个新分支(名为“ anythingslider”)。 Then: 然后:
cd /home/multiformeingegno
git clone git@github.com:multiformeingegno/cdnjs.git
Enter passphrase for key '/root/.ssh/id_rsa': (done)
I do the changes I need to do on /home/multiformeingegno/cdnjs Then I'd like to push my changes to anythingslider (not to master). 我在/ home / multiformeingegno / cdnjs上做了我需要做的更改,然后我想将我的更改推送到任何滑块(而不是主版本)上。
cd /home/multiformeingegno/cdnjs git add ajax/libs/anythingslider/*
git commit -m "Updated AnythingSlider to reflect original dir structure and added missing default.png"
git push origin anythingslider
Enter passphrase for key '/root/.ssh/id_rsa': (done)
But I get a: 但是我得到一个:
error: src refspec anythingslider does not match any.
error: failed to push some refs to 'git@github.com:multiformeingegno/cdnjs.git'
What's the problem? 有什么问题? I tried doing a pull to ensure I was up-to-date.. no luck. 我尝试进行拉动以确保我保持最新状态。
EDIT: This is what I get if I do a git remote show origin: 编辑:这就是我做的git remote show origin所得到的:
* remote origin
Fetch URL: git@github.com:multiformeingegno/cdnjs.git
Push URL: git@github.com:multiformeingegno/cdnjs.git
HEAD branch (remote HEAD is ambiguous, may be one of the following):
anythingslider
master
Remote branches:
anythingslider tracked
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (fast-forwardable)
Github has actually been down intermittently in the past few days. 实际上,Github在过去几天中间歇性地下降了。 https://status.github.com/messages https://status.github.com/messages
Whenever you have problems connecting on pushes or pulls from github, check https://status.github.com/ to see if they are having problems. 每当您在从github的推入或拉出连接中遇到问题时,请检查https://status.github.com/以查看它们是否有问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.