How to create a commit and push into repo with GitHub API v3?

Denis SkS picture Denis SkS · Aug 3, 2012 · Viewed 20.7k times · Source

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.

Answer

VonC picture VonC · May 7, 2013

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: