0

Is possible to copy only files committed to git repo to another folder. I found a similar question here, however the solution provided copies the whole repo to another folder. I just want copy the committed files. Thanks.

user3647451
  • 23
  • 1
  • 3
  • Could you explain your use case more extensively ? – LeGEC Oct 03 '17 at 08:26
  • We need to build deployment package on the basis of the updated files. For example we want to combine some of the copied files as a one deployment package and deploy them together to the different environments. – user3647451 Oct 03 '17 at 08:48

1 Answers1

0

Have a look at git archive :

git archive -o archive.tgz <commit>

will create a tgz with all the files present in the selected commit

LeGEC
  • 46,477
  • 5
  • 57
  • 104