Get difference between 2 branches and save the difference in another file using .bat file in windows.
this is script.bat file and here is full code .
Here are steps
1) create a new notepad++ file
@echo off
REM Get the list of differing file names
for /f %%i in ('git diff --name-only prod..test') do (
git diff prod..test -- "%%i" > "%%~ni.diff"
)
echo Script completed.
No comments:
Post a Comment