```shell # パッチをあてる (事前にgit diffの結果をdiff.patchに出力しておく) patch -p1 < diff.patch # ワンライナー git diff <target_commit> | patch -p1 ```