See changed files between GIT commits

Problem

You want to see the changed files between two commits in a GIT repository, e.g. to upload only changes to a webserver.

Solution

git diff --name-only SHA1 SHA2

Sample

git diff --name-only 71d9def3c587ca8d26b8140560f6bb3c89ec9593 HEAD

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.