Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据GitHub 文档,可以在浏览器中将新文件添加(提交)到 Git 存储库。
我想在我的 Java 应用程序中做同样的事情。
在哪里可以找到此处使用的 API 调用的 GitHub API 文档?
以下是我使用 Firefox 找到的请求数据:
要在 GitHub 存储库中创建或更新文件内容,您可以使用以下 GitHub v3 API
PUT /repos/{owner}/{repo}/contents/{path}
上述 API 的文档可以在这里找到。