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

Need to replace the old commit message with the new one

ashwinsoni June 19, 2017

wrote the weird commit message has been pushed to repo

Now dealing with the pain in the a** to undo the same.

Is there anyway to do it ?

 

Really appreciate your effort.

2 answers

1 accepted

0 votes
Answer accepted
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 19, 2017

Hi Ashwin! In SourceTree you can go to "File status", click on the commit message at the bottom and then on "Ammend last commit" (see screenshot). Note that the location of this menu varies slightly depending on whether you use Mac or Windows.

Screen Shot 2017-06-19 at 15.56.22.png

Alternatively, you can also do it via the command line. You can read Git's official documentation for more information Git commit.

Hope this helps!

Ana

0 votes
Steve Hogdahl July 31, 2017

Is there a way to do this for commits that have already pushed?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events