Github API create commit

后端 未结 2 1676
独厮守ぢ
独厮守ぢ 2021-01-13 01:51

I need help with Github API,

I need commit new version of file through api, I\'m trying to achieve this by sending post request to

https://api.gith         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-13 02:35

    I puzzled over this one too!

    Committing new content is actually a multi-step process, using their low level and powerful API.

    Here is a gist I made to share one solution. Note that a few things are hard coded, like the branch name "master".

    Please feel free to fork and improve the gist, or let me know if you're having trouble getting this to run.

提交回复
热议问题