How To Change git commit message after push

preview_player
Показать описание
Edit an incorrect commit message in Git and github.
The hash for every Git commit is also calculated based on the commit message. When you change the commit message, you change the commit hash. If you want to push that commit, you have to force that push (git push -f). But if already someone pulled your old commit and started a work based on that commit, he would have to rebase his work onto your new commit.
Way to edit a commit message in github.
Рекомендации по теме
Комментарии
Автор

Very very very helpful.
Dhanyavaad :)

darshanraut
Автор

That was quick and to the point. very usefull

harshsingh
Автор

Very good, it's very useful to me, thank you very much!

siamnganphairojsakun
Автор

Excellent video thank you for your help!

challengerssb
Автор

I see that it's been years since you made this video. I do hope that you've improved the fluency and the volume since then.

VulcanOnWheels
Автор

If you can use "force" when push, why don't you use git commit --amend to directly modify the commit description?

lishuiqing
Автор

The voice is very low.. not audible for me.. but in other videos its fine

urvashijindal