Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8687327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:05:34+00:00 2026-06-12T23:05:34+00:00

its pretty simple to find all the commits containing a particular file. git log

  • 0

its pretty simple to find all the commits containing a particular file.

git log -- .\Database\Tables\sometable.sql

but is there a simple way to find all the commits for a file type (recursively down child directories?) or will I need to write a script to do this?

(conceptually…)

git log -- .\Database\*.sql --recursive
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T23:05:34+00:00Added an answer on June 12, 2026 at 11:05 pm

    It appears that perhaps you just need to escape the * so that it doesn’t get expanded by the command line. It would seem that you are on Windows so… but I am on Linux and tested like so:

    git init
    mkdir -p blue/red/green
    touch blue/red/green/colors
    git add blue/red/green/colors
    git commit -m "colors and dirs"
    touch blackAndWhite
    git add blackAndWhite
    git commit -m 'b&w'
    git log -- \*ors
    

    The result on the last git log is:

    commit 8fdb718b5b616dd495c00eb7a6d123c33f7707e5
    Author: <snipped>
    Date:   Sun Oct 14 19:49:43 2012 -0400
    
        colors and dirs
    

    On the Windows escaping of *… perhaps put it in either single or double quotes? I’ll add if I figure something out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Its pretty simple to add form fields for uploading files etc, but I am
It's pretty simple, I have a text area post on my website, and if
I'm trying to write a snake game. It's pretty simple, there's an array of
I've put together a pretty simple competition script - it's commented out below and
OK so I thought this would be pretty simple but it's tripping me up..
I have built a pretty simple REST service in Sinatra, on Rack. It's backed
I like Gtalk's GUI very much. It's clear, simple, and pretty. I don't know
Interview question- Often its pretty easier to debug a program once you have trouble
I've got a jPicker installed and running fine; its a pretty sweet script. However,
In Python, I'd like to write a function that would pretty-print its results to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.