git rebase 使用总结: 使用git rebase 修改以前已经提交的内容 比如要修改之前的commit的 hashcode为:187f869c9d54c9297d6b0b1b4ff47d2ec781a55e 1,git rebase 187f869c9d54c9297d6b0b1b4ff47d2ec781a55e^ --interactive --退回到要修改的commit的前一个点上,执行后,git会调用默认的vi编辑器显示commit到最新commit的所有记录,把我们要修改的
Q: I wrote the wrong thing in a commit message. Alternatively, I've forgotten to include some files. How can I change the commit message/files? The commit has not been pushed yet. A: 有两种方法: 1. Amending the most recent commit message git commit --amen