Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to recommit in git

Tags:

git

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

like image 708
user1167753 Avatar asked Oct 18 '25 15:10

user1167753


1 Answers

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
like image 150
the_unknown_spirit Avatar answered Oct 20 '25 07:10

the_unknown_spirit