First step echo "1111111111" >> test.txt && git commit -m "1" echo "2222222222" >> test.txt && git commit -m "2" git rebase -i HEAD~2
Next change the configuration similar to the following s hash 1 p hash 2 Then the git will tell you that you made a mistake git rebase --edit-todo //set the configuration similar to the following //it's worth noting that 'p hash 2' doesn't show up p hash 1 git rebase --continue Finally, the second commit disappeared! Please review the rest of the bug report below. You can delete any lines you don't wish to share. [System Info] git version: git version 2.33.0 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.14.0-kali2-amd64 #1 SMP Debian 5.14.9-2kali1 (2021-10-04) x86_64 compiler info: gnuc: 10.2 libc info: glibc: 2.32 $SHELL (typically, interactive shell): /bin/bash [Enabled Hooks] -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/27704975-1b67-4c01-87c0-6d97d876458fn%40googlegroups.com.