如何让 Windows 调度程序和批处理文件仅运行主 Git 分支
我有一个Python程序进行查询和一些数据操作,该程序每5分钟通过批处理文件和Windows调度程序运行一次。我还想开始使用Git和github进行更好的版本控制,因为代码库变得更高级。
我的问题是,如何设置批处理文件以仅在主分支上运行代码?如果我在一个单独的分支中进行一些开发,我认为它将在我目前所在的分支中运行代码。
谢谢! - 此外,我将对如何摆脱Windows Scheduler的建议持开放态度……该程序正在获取数据并将其放入CSV中,然后将其插入Tableau。因此,如果我能以某种方式从Windows调度程序中获取该过程,那就太好了,但我想这是一个单独的问题。
I have a python program doing a query and some data manipulation that is run every 5 minutes through a batch file and windows scheduler. I want to also start using Git and Github for better version control as the code base get's more advanced.
My question is, how do I set up the batch file to only run the code on the master branch? If I am in a separate branch doing some development, I assume that it will run the code in the branch that I am currently in.
Thanks! - Also, I would be open to suggestions on how to get away from windows scheduler... The program is taking the data and putting it into a CSV that is then being pulled into Tableau. So, if I could somehow get that process off of my windows scheduler that'd be nice but I suppose that's a separate question.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论