一、查看提交记录,找到想要修改的commit id
|
1 2 |
$ git log $ q // 退出 |
二、进入提交记录
|
1 |
$ git reset --soft [版本号] |
三、修改
|
1 |
$ git commit --amend --author='用户名 <邮箱>' |
修改完按Esc:wq退出
四、提交
|
1 |
$ git push --force --tags origin 'refs/heads/*' |