Last Updated: February 25, 2016
·
310
· lxsameer

Git changeset from logs

Use below command to generate a simple changeset.

$ git log  --decorate --pretty='Commit: %Cgreen%s%n%CresetAuthor:%Cred %an%n%CresetDate:%Creset %cd%n %b' --color > ./CHANGES

This will create a file called CHANGES in your current directory with content like:

Commit: COMMIT MSG
Author: Sameer Rahmani
Date: Thu Apr 10 23:58:43 2014 +0430

of course you can add an alias for this just like:

$ git config --global alias.changeset "log --decorate --pretty='Commit: %Cgreen%s%n%CresetAuthor:%Cred %an%n%CresetDate:%Creset %cd%n %b' --color"