• In my work, network element configuration files downloaded automatically in hourly basis to the 3rd party server, I have configured the folder where the files downloaded on it as local Repo. • Recently, git schedule created to check the differences between the existing files with new downloaded files as below cmd /c ""C:\Program Files\Git\bin\bash.exe" --login -i -- D:\test.sh" D:\test consist the following commands cd d:/repo git diff -U5 | tail +3 • The above task created using windows Task Scheduler to difference between the existing files and new files, the results appear as shown in below example diff alias Eth-Trunk3 - !ip address xx.xx.xx.xx + !ip address xx.xx. vrrp vrid 2 virtual-ip xx.xx.xx.xx master # -interface GigabitEthernet0/0/5 + description To_ISP # -interface LoopBack0 +!interface LoopBack0 alias LoopBack0 Using git bash, how can send automatic email for all the changes appear above in hourly basis, what I mean is after the scheduler executed and appear differences I need to send all the differences appear by email.
git send-email
git-format-patch
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)