Modify Git commit messages in Gitlab
· One min read
- Refer to : https://docs.gitlab.com/ee/tutorials/update_commit_messages/
- Clone your repository
- git fetch origin my-branch-name
- git checkout my-branch-name
- git rebase -i HEAD~4
- Change pick to reword for the lines which you wanna change it, save
- Change commit message in the popped new editor window, save
- git push -f origin
