What is the Windows command for using git ls-files to copy modified files? -


on unix machine can run:

cp $(git ls-files --modified) ../modified-files 

to copy modified files directory. i'd on windows command line. (this command doesn't work).

my question is: what windows command using git ls-files copy modified files?


edit:

git version is: git version 1.9.5.msysgit.0

clarification: issue isn't whether git ls-files command works or not - question how pass list of files copy command.

this worked out:

for /f %i in ('git ls-files --modified') set a=%i |  copy  %a:/=\% c:\temp 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -