N
N
nashivancom2022-01-25 16:37:11
git
nashivancom, 2022-01-25 16:37:11

How to change commit description locally and on github?

Is it possible to change the commit description after a github push?
I want to change the description of this commit, for example:
image.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir, 2022-01-25
@Casufi

There is an option through an interactive rebase, but you need to understand that it will actually replace your commit with a new one, with a new description. You will need to push changes with the --force flag, such a trick will not work if you want to do it in the master and people have already brunched from this master.

A
Anton, 2022-01-25
@karminski

git commit --amend
https://docs.github.com/en/pull-requests/committin...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question