Post

間違ってコミットしていたファイルを歴史から全消去

$ git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch ファイル名' HEAD
[gitでファイルの存在をなかったことにする - baronyan’s blog http://baronyan.hatenadiary.com/entry/2014/07/14/152517]
This post is licensed under CC BY 4.0 by the author.