如何使用GitHub API v3创建提交并推入回购? [英] How to create a commit and push into repo with GitHub API v3?
本文介绍了如何使用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
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屋!
查看全文