1

当我发现自己在 PHP 中开发了一个非常复杂的基于 MVC 的 CMS 时。我确实创建了一个“更新”系统,但我听说过很多关于 git 和 SVN 的信息,所以我花了几个小时试图弄清楚如何使用 aptana studio 来做到这一点。

我正在使用 bitbucket.org。我添加了我的 repo 东西,然后继续“推送”我的项目。它要求我输入密码:我输入它。然后我收到错误:错误:src refspec master does not match any。错误:未能将一些参考资料推送到“https.//pthowsen@bitbucket.org/pthowsen/dvc5.git”

也许我必须使用 github 而不是 bitbucket?

反正。提前致谢。

4

1 回答 1

0

第一次推送需要在本地 master 和远程 repo 之间建立链接(通常称为 'origin')

如“让 git 在 Ubuntu 上的 aptana 中工作”中所述,转到 git 命令行并输入:

git push -u origin master

然后,您从 Aptana 进行的所有后续推送都将起作用。

注意:这假设您至少添加并提交了一次。
如果您的 repo 刚刚初始化,则没有提交,也没有 ' master' 分支。

于 2012-10-09T06:02:49.077 回答