Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git rebase - cannot change 'pick' to 'reword'

I'm trying to change the commit message of a previous commit. I'm trying to use git rebase --interactive <commit>

Once I find the commit I am looking for in the VIM window, when I use the arrow keys to locate the sha1 for the commit, delete the word pick and start to type 'reword' or 'edit' only some of the characters print and the cursor will jump to different parts of the commit message.

What am I doing wrong?

like image 270
andy mccullough Avatar asked Apr 25 '17 09:04

andy mccullough


2 Answers

Go to the particular line and use shift+i , text will become editable

like image 165
Varun Avatar answered Nov 15 '22 01:11

Varun


Follow these steps in editor

1) SHIFT + R = Replace / Edit Text

2) After replace text use ESC

3) Then Save ' :WQ '

like image 20
prasanth pr Avatar answered Nov 15 '22 01:11

prasanth pr