为什么我的新文件没有出现在我的 GitHub 存储库中?
我已经创建了一个存储库,现在我已经处理了大约 5 个源文件,但它们没有出现在网上。我如何上传它们/使它们在线显示。
其次,如何允许其他人使用该存储库?我的意思是,该项目是一个四人的项目,那么其他人如何加入以及我如何控制上传的文件?
I have created a repository, now I have worked on about 5 source files but they dont appear online. How do I upload them/make them show online.
Secondly, how do I allow other people to use the repository? What I mean is, the project is a four-person thing so how do the others join and how do I control uploaded files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先,您需要在本地提交更改,然后才能结束推送以将您的存储库与 github 上的存储库同步,例如
First you need to commit your changes locally before you end off with push to sync your repository with the one on github, e.g.
您需要提交并推送您的更改,以便它们显示在网上。假设您已经按照 GitHub 为您提供的步骤将本地存储库链接到远程主控,这可以通过一个简单的操作来完成
并且添加其他贡献者也不是太棘手,只需转到项目,单击右上角的“管理”按钮角,单击“协作者”选项卡,然后添加他们的 github 帐户。
这确实是一个可以通过精彩的 git 和 github 文档轻松回答的问题。查看 http://help.github.com/ 了解所有这些以及更多内容。 StackOverflow 适用于有关编程的问题,而不是有关如何设置存储库的问题(并且它也不应用于可以通过现有文档轻松回答的问题)。
You need to commit and push your changes for them to show up online. Assuming you have already followed the steps GitHub gives you to link your local repository to the remote master, this is accomplished with a simple
And adding additional contributors isn't too tricky, just go to the project, click the Admin button in the upper right corner, click the Collaborators tab, and add their github accounts.
This is really a question that is easily answered by the wonderful git and github documentation. Check out http://help.github.com/ for all of this and more. StackOverflow is for questions about programming, not about how to set up repositories (and it also shouldn't be used for questions that can be easily answered by existing documentation).