Skip to main content

Git: What files were changed since the last release?

·120 words·1 min· ·
Git Log History
Ariejan de Vroom
Author
Ariejan de Vroom
Jack of all Trades, Professional Software Craftsman

Sometimes it handy to get a list out of git log that tells you which files were changed since your last release. It’s not straight forward, but very doable with the help of git log and grep. ~ Let’s say you want to view all the changed files since the last tagged release, v1.3.1:

git log --reverse --name-status HEAD...v1.3.1 | grep -e ^[MAD][[:space:]]

As you’re used to, this shows each files that Added, Modified or Deleted. This command does not squash file changes. So it’s possible for a file to first be added, the deleted, then added again and later modified. The --reverse option shows file changes historically, so the first file changed after the v1.3.1 release is shown first.

Related

Precompile SASS to CSS for deployment to Heroku
·505 words·3 mins
Git Haml Sass Heroku
Rename a git branch
·64 words·1 min
Git Branch Tip
Cherry-Picking specific commits from another branch
·323 words·2 mins
Git Cherry-Pick Scm