7,164
edits
(→実用編) |
|||
Line 133: | Line 133: | ||
# コメントを編集 | # コメントを編集 | ||
# セーブ | # セーブ | ||
git push -f | |||
</syntaxhighlight> | |||
過去の commitメッセージの書き換え。 | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
git log | |||
# 書き換えるcommitの直下のhash | |||
git rebase -i 直下のhash | |||
# 先頭を pick -> edit | |||
# セーブ | |||
git commit --amend | |||
# コメントを編集 | |||
# セーブ | |||
git rebase --continue | |||
git push -f | git push -f | ||
</syntaxhighlight> | </syntaxhighlight> |