How to Create a Change Log for Your Product

At neptuneScripts.com, we will require to create a nice change log file which is readable to our customers each time a project released. It will become cumbersome if there are a lot of log files to create. Since all our projects used Git as source code repository, generating a change log from the Git history will help us cut down our time a lot.

Here are the git command we used to generate the change log files:

$ git log –since=”2015-09-01″ –name-only –date=short –pretty=”%nDate: %cd%nCommit ID: %h%nDescription: %s%n%nAffected files:” > Recent_Changes.txt

This command will generate a nice change log file (changelog.txt) like the above screenshot. You may adjust
“–since=” as per your commits date.

Enjoy!

 

Zharfan Mazli

I'm Zharfan Mazli, a Developer Entrepreneur from Kerteh, Malaysia. I have worked with lots of programming languages like Qbasic, VB, Pascal, C# and recently PHP. Here I'll share codes and tutorials for others and myself.