人に伝える用のメモ書きです.
git add hoge.txt
git commit -m "hoge"
git push
Pull Request発行 → レビュー受信 → ファイル編集 を経て...
git add hoge.txt
git commit -m "hoge"
git rebase -i HEAD~~
エディタが開くので,
1️⃣2回目のpickをsquashに差し替える
2️⃣重複しているコミットメッセージを片方削除する
エディタを閉じて,
git push -f
---
これとは別に,git commit --amend を使用する方法もあります.
気になる方は調べてみてくださいね.