을 커밋 개정 :오래된 내가 가지고있는 다음과 같이 역사 커밋
* 8cd26ba 2013-06-26 | history server-side (HEAD, noXHR)
* bffd858 2013-06-25 | popups and modals
* d95c5f4 2013-06-21 | Map update for new interaction
...
을 그리고 나는 이미 최선을 다하고했습니다 때 '8cd26ba'나는 모달 메커니즘에서 버그를 발견하여 수정하려는. 나는 'bffd858'을 고치려고 노력했다. (수정본과 관련되어 있으므로) described here. 자식은 내가 '편집'과 '선택'교체 한
pick 6fa566b history server-side
# Rebase bffd858..6fa566b onto bffd858
#
# 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
#
# If you remove a line here THAT COMMIT WILL BE LOST.
# However, if you remove everything, the rebase will be aborted.
#
나 (나노)에 표시
$ git rebase -i bffd858
를 입력
: 나는 다음과 같은 단계를했던 것
git said said :
Stopped at 8cd26ba... history server-side You can amend the commit now, with git commit --amend Once you are satisfied with your changes, run git rebase --continue
내 버그 수정 프로그램을 적용했고
$ git commit -a --amend
이
git rebase --continue
입력 입력 그리고 나는 '8cd26ba'내 버그 수정 (마지막 을 발견했습니다 커밋)!
내가 잘못 했습니까?
감사합니다. Sylvain Defresne, 조언을 구하십시오! 정말 혼란 스러웠던 점은 원래 Q & A에서 '~ 1'부분을 놓친 것입니다. 악마는 세부 사항에있다! –