gitのコメントを綺麗に整理する方法

gitのコメントを綺麗に整理する方法

1。git rebase -i head~00 # 00は自分が戻りたいときまで * squash : commitした内容をまとめる。commentも一緒にまとめる reword : committee messageを変更する

ex) 1.sqasushに変更ご:wq 2.もう一度rebase → reword → commit message 修正 3.commit->pushする、この時 git側には以前のcommit履歴が残しているのでforce pushしなければならない。