なぜ git rebase でファイルの状態を書き換えると、コミットハッシュが変わるのか?

それは git が変更状態をスナップショットとして持っているから。ファイルの状態が変わったにも関わらず、スナップショットが変わらないということはありえない。そういうことだろう。わかるかね。

Why does commit hashing change when file status is rewritten with git rebase?

Original By

https://github.com/YumaInaura/YumaInaura/issues/2290