直接通过github web应用程序将新文件上传到git存储库 [英] Uploading new files to a git repository directly through the github web application

查看:279
本文介绍了直接通过github web应用程序将新文件上传到git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以通过web界面直接编辑存储在github上的存储库中的文件。我们大多数人不会这样做,但它有其用途。





我教导学入门课程。我想使用git和github进行作业发布和收集(github提供免费的教育私人帐户)。然而,我不能要求全新的学生学习git,至少在前几周内不会。在开始的几周里,我想说的是:您可以通过点击github.com上的这一系列按钮来上传您的作业



,然后最终教会他们如何使用命令行。



理想情况下,我希望他们能够上传新文件,不只是编辑现有的。虽然我找不到办法做到这一点。有没有人有任何经验使用github web界面用于类似的目的? 直接来自GitHub的新文件




ProTip™:您可以使用URL预填充文件名字段。

输入?filename = yournewfile.txt 在URL的末尾将预先填充名称 yournewfile.txt 的文件名字段。


p>

It is possible to directly edit files in a repository stored on github through the web interface. Most of us would never do this but it has its uses.

I teach an introductory level course. I'd like to use git and github for homework distribution and collection (github offers free private accounts for education). However I can't ask completely fresh students to learn git, at least not in the first few weeks. For the first few weeks I would like to say

"You can upload your homework by clicking on this sequence of buttons on github.com"

and then eventually teach them how to use the command line.

Ideally I'd like for them to be able to upload new files, not just edit existing ones. I can't find a way to do this though. Does anyone have any experience using the github web interface for a similar purpose?

解决方案

Note that since early December 2012, you can create new files directly from GitHub:

ProTip™: You can pre-fill the filename field using just the URL.
Typing ?filename=yournewfile.txt at the end of the URL will pre-fill the filename field with the name yournewfile.txt.

这篇关于直接通过github web应用程序将新文件上传到git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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