Skip to content

Instantly share code, notes, and snippets.

@eugesh
Last active December 11, 2024 12:24
Show Gist options
  • Save eugesh/c6f8a0a885ef2a4366f6eb40126bdcd6 to your computer and use it in GitHub Desktop.
Save eugesh/c6f8a0a885ef2a4366f6eb40126bdcd6 to your computer and use it in GitHub Desktop.
@ECHO ON
SET FileList=D:\path\to\changed_list.txt
SET Source=D:\path\to
SET Destination=C:\path\to
FOR /F "USEBACKQ TOKENS=*" %%F IN ("%FileList%") DO XCOPY /F /Y "%Source%\%%~F" "%Destination%\%%~F"
GOTO :EOF
$ git diff --name-only HEAD~25 HEAD >> changed_list.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment