Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
99 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...