News for hackers. Stuff that matters.
Re:Ten Years of Git: An Interview with Linus Torvalds by Zikes on Monday April 06, 2015 @04:04PM (#9330389)
I most often use it because I forgot to include a certain file in my most recent commit. I'll just commit that file then rebase -i to merge the two.
Re:Ten Years of Git: An Interview with Linus Torvalds by regularjack on Monday April 06, 2015 @05:09PM (#9330708)
If you want to alter the most recent commit, you can 'git commit --amend', no need to rebase.

http://git-scm.com/book/en/v2/Git-Basics-Undoing-Things

Re:Ten Years of Git: An Interview with Linus Torvalds by lentil on Monday April 06, 2015 @05:11PM (#9330724)
For quick changes to the most recent commit, a handy alias to put in your ~/.gitconfig is:

  fixup = commit --amend -C HEAD
That way you can stage whatever you forgot, and then do `git fixup` to update the latest commit with it. Saves a little bit of typing :)

I do love `rebase -i` for anything more complicated though.