Comparing two commits in Git

Whenever I push a release I’m required to provide a list of all the files I’ve changed. As I’m using Git personally I can easily compare the initial import (or last release/import) with the version that I am pushing for release. The simple way of doing this is displayed in the answers in this Stackoverflow question. For quick reference the line is as follows:

git diff --name-only SHA1 SHA2


Published by:


Production Facilitator at Audacious Church Previously Software Developer at UKFast Ltd. and Web Applications Developer at SenseLogix Ltd. Graduate of Renewable Energy BSc from the University of Exeter. Experience with PHP, MySQL, Javascript, CSS and HTML.

Categories General, ProgrammingTags Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s