<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
    <anon>Git</anon>
    <anon>GitHub</anon>
  </categories>
  <description>「config.yaml の API_KEY をいつ誰が変更したか知りたい」「README の特定の文言がどのPRで消えたか追いたい」といった場面で、git log -S を使うと特定文字列を追加・削除したコミットを素早く特定できます。 git log -S で文字列変更を含むコミットを探す -S オプションは、指定した文字列を追加または削除したコミットを抽出します。 git log -S &quot;検索したい文字列&quot; -- path/to/file 例：config.yaml の API_KEY 変更履歴を探す git log -S &quot;API_KEY&quot; -- config.yaml ファイルパスを省…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2025%2F09%2F13%2F213141&quot; title=&quot;GitHubで特定文字列を変更したコミットとPRを特定する方法：git log -S の使い方 - Engineering Tech Dojo&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-09-13 21:31:41</published>
  <title>GitHubで特定文字列を変更したコミットとPRを特定する方法：git log -S の使い方</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2025/09/13/213141</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
