4

I have commited some change with git. Now I would like to change the commit text. Is there any possibility to do that? I am using eclipse git and gittortoise

3
  • 7
    Possible duplicate of Edit an incorrect commit message in Git Commented Feb 3, 2016 at 9:31
  • 2
    Use git commit --amend ... keep in mind this will rewrite the HEAD of your branch, so when you push you will have to use git push --force Commented Feb 3, 2016 at 9:34
  • why there is a java tag? Commented Feb 3, 2016 at 9:54

1 Answer 1

14

you may use git commit --amend -m "message" or may do this which is fairly equivalent :

$ git reset --soft HEAD
$ ... do something else to come up with the right tree ...
$ git commit -c ORIG_HEAD
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.