Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can I change a commit message after push to remote

Jonas Engdahl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 3, 2023

I want to edit my commit message but see no command that supports this.

 

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 3, 2023

Hi @Jonas Engdahl  and welcome,

you can use git commit --amend command to do that.

Please take a look to the following article https://www.atlassian.com/git/tutorials/rewriting-history

Hope this helps,

Fabio

Jonas Engdahl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2023

Ok- Thanks! So limited to do this for only the last commit as I understand it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events