Changing GIT commit message from commit in history



Try and find the commit characters just before your commit using git log. See Image for clarification
git log
Once you have found your 6 characters. Say in our case this is 200052
git rebase --interactive 200052
Your editor will come up with several lines as seen in the image. If you not familiar with the default editor (probably vim) you should press i before you can edit
Change the word pick into reword in front of the commit you'd like to change. Press ESC and type :wq
A new file opens and by pressing i you can now edit the commit message
More like this
- solrapi.inc at master from technosophos's SolrAPI- GitHub
- Nick_vh: I want a hook_drupal_set_message_alter!!! #ubercart #static #fail #drupal
- Nick_vh: Cool, have my own module in #drupal- it was time to commit, now refine it and then wait for bugs! Better to commit in stages then never!
- Nick_vh: RT @toubes: word of the day: innodb_flush_log_at_trx_commit, a huge improve in #mysql #commits, thks to @Nick_vh
- @Nick_vh thanks- i mean inside of a view that you are editing- my default settings are changed when i change the block too
