Can I use GitHub APIs to create branches, commit changes, compare branches and merge branches?

Hi Experts,

I wonder whether there is any Rest APIs for Github to perform basic git operations such as creating branches, commit changes, compare branches and merging branches, WITHOUT copying the entire repo into the local file system.  In other words, just copying the modified files in the file system, or keeping the changes in memory or by other means.

What you’re looking for is in the Git Data section of the REST API documentation.

I hope that helps!

1 Like