1

I would like to find out if it is possible to get an ordered list of sql files that were commited to git from a specific commit on til the last commit?

simonC
  • 4,101
  • 10
  • 50
  • 78

1 Answers1

4
git diff --name-only commit_hash -- '*.sql' | sort
simonC
  • 4,101
  • 10
  • 50
  • 78
pixelbeat
  • 30,615
  • 9
  • 51
  • 60
  • great ... actualy I had to put -- between the hash and the file name like this git diff --name-only 385c419 -- '*.sql' | sort, please repair the answer an i will mark it as correct – simonC Nov 21 '15 at 13:56
  • what about if I want to sort by cronologic order an not by name? – simonC Nov 23 '15 at 07:36