Skip to content

Instantly share code, notes, and snippets.

@GINK03
Last active June 30, 2018 18:37
Show Gist options
  • Save GINK03/1d55aa898a05fd5fd0e13756c0574523 to your computer and use it in GitHub Desktop.
Save GINK03/1d55aa898a05fd5fd0e13756c0574523 to your computer and use it in GitHub Desktop.
githubで間違ってアップロードしたファイルを、過去に遡って消す

以下のコマンドを打つ

$ git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ./pixiv-daily-ranking-web/token_dbx.txt' --prune-empty --tag-name-filter cat -- --all

たぶん、これで消える

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment