Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
100 views
in Technique[技术] by (71.8m points)

Send automatic email for diff results in git bash

? 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, a git schedule created to check the differences between the existing files with the new downloaded files as below

cmd /c ""C:Program FilesGitinash.exe" --login -i -- D:est.sh"

D:est consist the following commands

cd d:/repo git diff -U3 | 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 LoopBack0

+!interface LoopBack0

alias LoopBack0

Using git bash, how can send an automatic email for all the changes that appear above in hourly basis, what I mean is after the scheduler executed and appear differences I need to send all the differences to appear by email.

question from:https://stackoverflow.com/questions/65846612/send-automatic-email-for-diff-results-in-git-bash

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...