Git notes

Links about rewriting history:

Section 7.6 of the Pro Git book by git evangelist Scott Chacon and Ben Straub talks about rewriting history.

In essence, the command one wants is:

git commit --amend

I also found a variant (from ref 1):

git commit --amend -author="Author Name <email@address.com>"

Magit

Magit is an emacs based git package. I use magit and I sometimes find it convenient.

The user manual gets installed as info pages in emacs, but there is a version online too

Installation

The melpa method is:

(require 'package)
(add-to-list 'package-archives
           '("melpa" . "http://melpa.org/packages/") t)

M-x package-refresh-contents RET
M-x package-install RET magit RET