背景:git commit 进行了多次提交,但是需要修改某次的提交的时候。操作:比如有5个commit1.git rebase -i HEAD~5那么会弹出一个编辑器。把你想要修改的commit前面pick改成edit2.然后修改3.git add4.git commit --amend5.git rebase --continue.本栏目推荐文章linux 安装最新版本gitgit bash报错fatal: detected dubious ownership in repository at的解决方法git commit规范Git提交规范如何把已有项目上传到git一段shell代码可用于git部署代码到服务器的操作openEuler欧拉设置git pull免密git常用命令安装篇 —— gitConditional Git Configuration 有条件配置Git信息gitgit2 git_ssh commit git 分支git 笔记git 代码git 仓库git git-lfs stash git 命令git