Find git commits for a certain filetype

Richard Tuin
Sep 6, 2017 · 1 min read
git log -- *.sql
rtuin@mpb ~/projects/someproject (master) $ git log -- *.sql
commit 948f4b955393a42ed7a87244a289f422017961fb
Author: <redacted>
Date: Thu Jul 13 12:18:41 2017 +0300
Some commitcommit 070c09ef966609b105459e4330ef3b2e1248ca16
Author: <redacted>
Date: Tue Jul 4 16:19:05 2017 +0200
Some other commitcommit 69ebb36154d350ee6bda7aa78ed6353590cc36e1
Author: <redacted>
Date: Wed Jun 28 16:35:43 2017 +0300
Some other other commit
Richard Tuin

Written by

Writes software for fun & profit. Community enthusiast. @Egeniq @phpbenelux

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade