Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在一天中的预定时间自动提交本地存储库中的所有内容并将其推送到远程存储库?
如果是的话可以用eclipse git插件完成吗?
问候,阿蒂什
只需制作一个带有启动扩展( org.eclipse.ui.startup )的插件,让一个线程等待一天中的特定时间,对于 git 部分,有一个库jGit,您可以使用它在 Eclipse 中创建插件。
使用 org.eclipse.jgit.lib.RepositoryBuilder 类使用 Java 和 git 命令的API包查找您的存储库。
但请记住,如果您将其作为 Eclipse 插件实现,则需要在当天的那个时间打开 Eclipse。