1

我在 GitHub 上创建了一个 repo。从网站创建了一个新分支(名为“anythingslider”)。然后:

cd /home/multiformeingegno
git clone git@github.com:multiformeingegno/cdnjs.git
Enter passphrase for key '/root/.ssh/id_rsa': (done)

我在 /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)

但我得到一个:

error: src refspec anythingslider does not match any.
error: failed to push some refs to 'git@github.com:multiformeingegno/cdnjs.git'

有什么问题?我尝试拉动以确保我是最新的……没有运气。

编辑:如果我做一个 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)
4

1 回答 1

0

过去几天,Github 实际上一直在断断续续地宕机。https://status.github.com/messages

每当您在连接 github 的推送或拉取时遇到问题,请检查https://status.github.com/以查看它们是否有问题。

于 2013-04-06T02:39:10.623 回答