Modifying the top-most commit

Hello all,

after a long, long time I'm back to show you how to modify the top-most commit.
Let's try it?

First of all, you just edit the file:

$ vim file.c-- Save and quit

$ git-add file.c$ git-commit --amend

And that's all. You're gonna commit the changes on the same commit you were.

Easy, isn't it?

On later post we'll see how to use git-rebase.

VN:F [1.9.0_1079]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.0_1079]
Rating: 0 (from 0 votes)

Leave a Reply