为什么我的提交不出现在GitHub中? [英] Why aren't my commits appearing in GitHub?

查看:302
本文介绍了为什么我的提交不出现在GitHub中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过5个小时的故障排除,搜索解决方案和教程,我不能帮助自己,以便在放弃之前将您作为最后的希望。



我想在github.com上有一个新的项目回购。所以我创建了一个账户和一个回购。到目前为止,这么好。



我安装了Git和TortoiseGit,并通过HTTPS制作了我的repo的克隆。现在,如果我尝试提交Tortoise,它告诉我它已经成功,但我没有看到github.com上的更改。



我试图通过SSH进行克隆。但在这里,当我尝试克隆repo时,Tortoise给了我错误:
$ b


git没有干净退出(退出代码128)


我也尝试从master制作一个forktrunk,但是在第1点中,我可以获得trunk到我的PC,但是我不能提交。



所以,程序经过很好的测试并运行良好,我必须是失败的。

我必须知道Git如何在github.com上使用我的回购协议?



我应该怎样做才能让我的变更得到执行?

解决方案

cforbish已经找到了你的问题:git push。

我想也许还有一些解释会对你有所帮助:



Keep in介绍你有额外步骤的原因是因为Git是一个分布式VCS,这意味着你不仅拥有文件的本地副本,而且还拥有整个资源库(所有修订版,标签等)的本地副本。因此,当你提交时,你已经将这些修改提交到你的本地版本库,而不是github或任何其他'remote'版本库。

>

然后您可以通过推送将提交推送到一个或多个远程存储库。但是,每次提交后都没有必要这么做。我倾向于做几个小的提交,这些提交是实现特定功能或修复的一部分,当我完成并且满意它正在工作时,我将一次推送所有提交。



同样,您可以使用'git pull'从远程存储库中检索不在您本地存储库中的提交。


After 5 hours of troubleshooting, searching solutions and tutorials I can't help myself as to use you guys as a last hope before giving up.

I want to have a repo on github.com for a new project. So I created an account and a repo. So far, so good.

I installed Git and TortoiseGit and made a clone of my repo via HTTPS. Now, if I try to commit Tortoise tells me that it was successful but I do not see the changes on github.com.

I tried to clone via SSH. But here Tortoise gives me the error when I try to clone the repo:

git did not exit cleanly (exit code 128)

I also tried to make a fork "trunk" from "master", but as in point 1 I can get trunk to my PC but I cannot commit.

So, hence the programs are well tested and running well, I must be the failure.

What must I know about Git to work with my repo on github.com?

What shall I do to get my changes committed?

解决方案

cforbish already found your problem: git push.

I thought perhaps some more explanation would help:

Keep in mind the reason you have the extra step is because Git is a distributed VCS, which means you don't just have a local copy of your files, but also a local copy of the entire repository (all revisions, tags, etc.).

So when you 'commit' you've committed those changes to your local copy of the repository, but not to github or any other 'remote' repository.

You can then follow up with a push to push the commit to one or more remote repositories. However, it isn't necessary to do so after every commit. I tend to do several small commits that are parts of implementing a particular feature or fix and when I'm done and satisfied that it is working, I will push all of those commits at once.

Similarly, you can use 'git pull' to retrieve commits from a remote repository that aren't in your local repository.

这篇关于为什么我的提交不出现在GitHub中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆