<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtiit</author_name>
  <author_url>https://blog.hatena.ne.jp/mtiit/</author_url>
  <blog_title>(O+P)ut</blog_title>
  <blog_url>https://www.mtioutput.com/</blog_url>
  <categories>
    <anon>DevOps</anon>
    <anon>DevOps-Git</anon>
  </categories>
  <description>はじめに Gitではファイルの修正を適宜コミットすることでバージョン管理を行え、過去のコミット時に戻すことが可能です。一方で、過去のバージョンに戻すのではなくて中身のみを表示したい場合があります。本記事ではそれらの手法をハンズオン形式で説明しています。 事前準備 以下のようなテストファイルを作成して最初にコミットを行います。 $ echo &quot;HelloWorld&quot; &gt; a.txt $ git add a.txt $ git status a.txt On branch master No commits yet Changes to be committed: (use &quot;git rm --c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mtioutput.com%2Fentry%2Fgit-view-pastfile&quot; title=&quot;【Git】showコマンドによる特定ファイルの過去バージョンの確認方法 - (O+P)ut&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://cdn-ak.f.st-hatena.com/images/fotolife/m/mtiit/20200202/20200202180830.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-03-14 11:20:07</published>
  <title>【Git】showコマンドによる特定ファイルの過去バージョンの確認方法</title>
  <type>rich</type>
  <url>https://www.mtioutput.com/entry/git-view-pastfile</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
