如何让 Windows 调度程序和批处理文件仅运行主 Git 分支

发布于 2025-01-18 06:46:02 字数 308 浏览 3 评论 0原文

我有一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文