Skip to content

Instantly share code, notes, and snippets.

@mah0x211
Created September 14, 2018 04:31
Show Gist options
  • Select an option

  • Save mah0x211/44434125fa9bb0ac731d678b5a8941a7 to your computer and use it in GitHub Desktop.

Select an option

Save mah0x211/44434125fa9bb0ac731d678b5a8941a7 to your computer and use it in GitHub Desktop.
Memo:Git で歴史の書き換え
# rewriting content history
git filter-branch -f --tree-filter <script> --tag-name-filter cat -- --all
# rewriting commit message history
git filter-branch -f --msg-filter <script> --tag-name-filter cat -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment