그냥 대화 형 REBASE, 오류 복구의 스쿼시 당신이 눌려 있거나 fixupped이 (고쳐?)
git rebase HEAD~10
pick a4461d3
pick d998164
pick 0a1f6e1
f 310ba9d
f 60b7e01
f 7baef60
pick bb9a551
pick badbad1
pick fd9a10c
pick 59ed66f
# Rebase e7e1369..60b7e01 onto fd9a10c (10 command(s))
#
# 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
# d, drop = remove commit
#
# 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.
#
# Note that empty commits are commented out
자습서는 방법입니다. Rebase * copies * 커밋은 원본을 그대로 둡니다 (커밋 된 내용은 Git에서 변경할 수 없습니다). 따라서 원래의 복사되지 않은 커밋은 원래의 원래의 커밋되지 않은 커밋을 다시 가리 키기 때문에 픽스 업 이후의 모든 커밋을 다시 복사해야합니다. 아래 jared의 답변을 참조하십시오. – torek