Git Commit Message Change

# 1. Change local message
git commit --amend -m "New commit message"

# 2. Push the change to remote
git push --force-with-lease

# 3. Other collaborators update their local repositories
git pull
posted @ 2023-04-17 17:29  shendawei  阅读(17)  评论(0编辑  收藏  举报