Slide 19
Slide 19 text
git rebase -i
実行例
<command
> <commit SHA
> <commit message
> という形式。この文字列を操作してコミットを操作する。
pick 2e07860
機能A
を実装
fixup eec4f44 typo
修正
pick 4c088b1
機能A
のテストを追加
pick f813dac README
を更新
# Rebase 7890123..3456789 onto 7890123 (4 commands)
#
# Commands:
# p, pick = use commit
# r, reword = use commit, but edit the commit message
# e, edit = use commit, but stop for amending
# s, squash = use commit, but meld into previous commit
# f, fixup = like "squash", but discard this commit's log message
# x, exec = run command (the rest of the line) using shell
# b, break = stop here (continue rebase later with 'git rebase --continue')
# d, drop = remove commit
# l, label = label current HEAD with a name
# t, reset = reset HEAD to a label
# m, merge [-C | -c ] [# ]
# u, update-ref = track a placeholder for the to be updated
#
# These lines can be re-ordered; they are executed from top to bottom.
#
# If you remove a line here THAT COMMIT WILL BE LOST.
#
# However, if you remove everything, the rebase will be aborted.
Git/GitHub 知っておくと便利かも Tips 19