[英]Not Sure That I Successfully Git Pushed to a forked Repository
I forked a project on the GitHub and cloned that project to my local laptop. 我在GitHub上创建了一个项目,并将该项目克隆到了本地笔记本电脑中。 I added some code to one of the project files and pushed the project to a GitHub "fork"ed repository.
我向其中一个项目文件添加了一些代码,并将该项目推送到GitHub的“ fork”存储库中。 I got a message saying Everything up-to-date back in the Git Bash command window.
我在Git Bash命令窗口中收到一条消息,说一切都是最新的 。
I am not sure that the "push" was successful. 我不确定“推”是否成功。 How do I find my code under the GitHub "forked" repository?
如何在GitHub“ forked”存储库下找到我的代码? I have gone to the GitHub and signed in. I went to My_GitHub_UserName/Project_Name, I saw the project maintainer's code, I did not see my added code.
我去了GitHub并登录。我去了My_GitHub_UserName / Project_Name,我看到了项目维护者的代码,没有看到我添加的代码。 How do I know that the "push" is successful?
我怎么知道“推”成功了? Thanks.
谢谢。
I did below: 我在下面做了:
$ git remote rm origin
$ git remote add origin https://{github_username}:{github_password}@github.com/{github_username}/vlerdas-subscribe.git
$ git push origin master
The Git bash prompted: Everything up-to-date . Git bash提示: 一切都是最新的 。
Edit: When you fork a project on GitHub, you essentially clone their git repo into your GitHub account. 编辑:当您在GitHub上分叉项目时,实际上是将其git repo克隆到您的GitHub帐户中。 When you clone that, make a change and push, it goes to your fork, not the original maintainers repository.
当您克隆该副本时,进行更改并进行推送,它将转到您的fork,而不是原始的维护者存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.