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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Amend last commit message?

I messed up a commit message and and noticed before I pushed my local repo changes out so I wanted to edit the message. I couldn't find anywhere obvious to do this within SourceTree.

I just did it via the git command in the end (git commit --amend -m "correct message").

Did I miss the ability to do this in the SourceTree interface or is it simply not there?

1 answer

1 accepted

36 votes
Answer accepted

It's there, at the bottom left of the commit window, 'Amend latest commit' checkbox).

Ah! Thanks Steve. :) Stupidly, I didn't think of looking in the commit window - I was looking for something off of the newest log item's right click menu.

In version 2.0.5.2 on Mac, the option is now at the top right of the commit section. "Amend last commit" is the first option in the "Commit options..." dropdown.

still no graphic update for this feature on windows !!

Thanks for this...

I have to keep coming back to this answer because the location of that option  is not really intuitive to me... 

I think it would better to have this option in the context sensitive menu which gets launched when right-clicking the  selected check-in in the history view.

I totally am unable to follow the "Ammend latest commit" flow.

I agree with Bill OLeory.

Yes It worked for me in Mac

Select Commit -> It will open commit window -> Center Right -> Commit options -> Amend last commit 

Thanks Steve

I got it working after a couple of tries, but this is rubbish.

  • One can't directly work on the commit itself with some button or option. One has to make a sort of ghost commit.
  • Possibly with some uncommitted files, one has to push 'Commit'. That was too scary to try, so I undid changes first.
  • So wit NO uncommitted files I had to push 'Commit'! Then find that option. Then get a popup in bad English: "Do you want to replace the commit text above with the message from the previous commit?" No, the other way around! And it is not 'above'.
  • And for some reason I had to try a couple of times because it did not work, the second 'Çommit' button was not enabled, or whatever. But probably I was misled by the popup which suggests it finalizes the action.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,270 views 19 18
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you