Friday, September 10, 2010

List just the files that have changed in git.

To show the files that have changed between two revisions:
git diff --name-only foo bar

To show the files that changed for a particular commit:
git show --pretty="format:" --name-only *commit-sha*

No comments:

Post a Comment