Modify the notes that have been submitted on gitlab
1. Now that the commit has been pushed to gitlab.com, you must force a commit containing the correction message. Due to the submission instructions that do not meet: convention submission, its URL:https://www.conventionalcommits.org/zh-hans/v1.0.0/
2. Reference:https://docs.github.com/cn/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message.
3. Use the git commit –amend command to modify the commit message. Type git commit –amend and press Enter. Please enter your change submission message. head of a show
have## will be ignored.
4. Edit the commit message in the text editor and save the commit. as shown in Figure 1
5. Use the push –force-with-lease command to force the modified old commit. as shown in Figure 2
PS E:\wwwroot\object> git push --force-with-lease origin example-branch Enumerating objects: 19, done.
Counting objects: 100% (19/19), done.
Delta compression using up to 4 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (10/10), 1.59 KiB | 108.00 KiB/s, done.
Total 10 (delta 8), reused 0 (delta 0), pack-reused 0
remote:
remote: View merge request for example-branch:
remote: https://xxx/themes/object/-/merge_requests/487
remote:
To https://xxx/themes/object.git
+ efb465f5...61478100 example-branch -> example-branch (forced update)
PS E:\wwwroot\object>
6. Check the submission instructions on gitlab, which has been added: feat: prefix. as shown in Figure 3


