Home > database >  How to get files between two commits in Azure Devops
How to get files between two commits in Azure Devops

Time:12-19

Is there a way to get all files between two commits?

I tried to use

git diff <commitFrom>  <commitTo> Scripts/**/*.sql

and basically to archive later

git archive --output=artifact.zip HEAD (git diff <commitFrom>  <commitTo> UpdateScripts/**/*.sql)

I am getting empty artifact.zip file.

Also, I tried to use enter image description here

  • Related