如何使用GitHub API v3创建提交并推入回购? [英] How to create a commit and push into repo with GitHub API v3?

查看:113
本文介绍了如何使用GitHub API v3创建提交并推入回购?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个存储库,并通过任何Python包向其提交一些文件。我该怎么办?

I want to create a repository and Commit a few files to it via any Python package. How do I do?

我不明白如何为提交添加文件。

I do not understand how to add files for commit.

推荐答案

你可以看到新的更新 GitHub CRUD API(2013年5月)可以提供帮助

You can see if the new update GitHub CRUD API (May 2013) can help


存储库内容API 允许读取文件一段时间。现在,您可以轻松地对单个文件进行更改,就像您可以在网络用户界面中一样。

The repository contents API has allowed reading files for a while. Now you can easily commit changes to single files, just like you can in the web UI.

从今天开始,您可以使用这些方法:

Starting today, these methods are available to you:

  • File Create
  • File Update
  • File Delete

这篇关于如何使用GitHub API v3创建提交并推入回购?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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