<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ShineSpark</author_name>
  <author_url>https://blog.hatena.ne.jp/ShineSpark/</author_url>
  <blog_title>人生シーケンスブレイク</blog_title>
  <blog_url>https://shinespark.hatenablog.com/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>githubなどへアップしているファイルで、username/password/addressなどが含まれているファイルの歴史をまるっと削除したい時に。 歴史が変わるので複数人で触っているリポジトリは何かと問題が発生します。今回は個人リポジトリ前提で。 git version 2.4.6 事前準備 該当ファイルは削除時に物理ファイルごと無くなる為、事前に退避させておきます。 $ mv ./keshitai-file.txt ~/tmp/ 歴史から消す git filter-branch -f --tree-filter 'rm -f keshitai-file.txt' HEAD # 消したい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinespark.hatenablog.com%2Fentry%2F2015%2F09%2F03%2F012904&quot; title=&quot;gitで特定ファイルの歴史をまるっと削除する - 人生シーケンスブレイク&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>2015-09-03 01:29:04</published>
  <title>gitで特定ファイルの歴史をまるっと削除する</title>
  <type>rich</type>
  <url>https://shinespark.hatenablog.com/entry/2015/09/03/012904</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
