<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>GitHub API</anon>
  </categories>
  <description>本記事ではGitHub APIを利用してコミットを作成する方法を紹介します。通常はGitクライアントでcommitとpushを行うことでコミットを作成しますが、GitHub APIだけでもコミットを作成できます。 まずはGitのデータ構造を把握しておく必要があります。下図のように、GitではRef、Commit、Tree、Blobという単位でコミットやファイルが管理されています。 https://git-scm.com/book/en/v2/Git-Internals-Git-Objects 新しいコミットを作成するには、木構造のLeafからRootに向かって、すなわちBlob→Tree→Co…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2017%2F09%2F05%2F161641&quot; title=&quot;GitHubのGit Data APIでコミットを作成する - GeekFactory&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://git-scm.com/book/en/v2/images/data-model-3.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-05 16:16:41</published>
  <title>GitHubのGit Data APIでコミットを作成する</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2017/09/05/161641</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
