简体   繁体   English

无法使用Zend Studio 10.0.1将git commit推送到github repo

[英]Cannot push git commit to github repo using Zend Studio 10.0.1

I am able to hit the commit button in zend studio for eclipse in but nothing seems to get pushed to the git hub. 我能够按一下zend studio中的提交按钮以进行蚀,但似乎什么也没有推送到git hub。 I downloaded Zend 10.6 trial and it seems to work fine. 我下载了Zend 10.6试用版,看起来工作正常。 I think there is an issue with my version finding Git? 我认为我的版本找到Git存在问题吗? I updated the software. 我更新了软件。 In the new one, I just hit "commit and push" and it works seamlessly but in my version theres only a commit button and it never makes it to the github server? 在新版本中,我只是单击“提交并推送”,它可以无缝运行,但是在我的版本中,只有一个提交按钮,而它从未进入github服务器?

Git is distributed source control. Git是分布式源代码管理。 Unlike something like SVN, you do not commit to a central repository. 与SVN之类的东西不同,您不必提交到中央存储库。 You commit only and always to your local repository. 您仅且始终会提交到本地存储库。 You can then push a series of commits to a peer repository, one of which is treated as the authoritative repository like on github, but you must push the changes. 然后,您可以将一系列提交推送到一个对等存储库,其中一个像在github上一样被视为权威存储库,但是您必须推送更改。

If there is not commit and push button in your version of zend, you must find the push button (sometimes called synchronize branch/repo) or push from the command line. 如果您的zend版本中没有提交和按钮,则必须找到按钮(有时称为“同步分支/仓库”)或从命令行进行推送。 To push from the command line, open your favorite command processor or shell, change to the directory of your git repository and type: git push origin master . 要从命令行推送,请打开您喜欢的命令处理器或外壳程序,切换到git存储库的目录,然后键入: git push origin master This assumes your remote is named origin which is the default and usually the case and your branch is named master , also the default and usually the case. 假设您的远程名称为origin ,这是默认值(通常是大小写),而分支的名称是master ,这也是默认值(通常是大小写)。 Replace these as necessary for your setup. 如有必要,请更换它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM