简体   繁体   English

我可以在代码中提交并推送Java吗?

[英]Can I commit and push in Java from within the code?

I have a program that automatically updates files for my website and periodically uploads them as well. 我有一个程序可以自动更新网站文件并定期上传文件。 In the past, I uploaded the files through FTP which was pretty simple and worked okay . 过去,我通过FTP上传文件,这非常简单并且可以正常运行

I have since moved to GitHub Pages, and where syncing the website through the GitHub program manually is fairly simple, I have no idea how to automate this within my own program. 从那以后,我搬到了GitHub Pages,通过GitHub程序手动同步网站非常简单,但我不知道如何在自己的程序中实现此自动化。

Is it possible to update my website from within code, and if so, how would I go about doing that? 是否可以从代码中更新我的网站,如果可以,我该怎么做?

Use this library (called JGit): 使用此库(称为JGit):

http://www.eclipse.org/jgit/ http://www.eclipse.org/jgit/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用键盘快捷键从 IntelliJ IDEA 执行 git commit 和 push? - How can I use keyboard shortcuts to do a git commit and push from IntelliJ IDEA? 使用 Eclipse Java:我可以从另一个 JVM 中运行代码/测试吗? - With Eclipse Java: Can I run code/tests from within another JVM? 如何使用Java中的自定义字段发送推送通知? - How can I send a push notification with custom fields from Java? 如何在Java代码中优化此mySQL事务? - How I can Optimize this mySQL transaction within java code? 如何在Java代码中将mac中的文件类型关联起来? - How can I associate a file type in mac within Java code? 如何将消息从Activemq推送到Java应用程序 - How can I push messages from Activemq to Java Application 我如何在一个 java 项目上工作,并随着我的进展将我的代码推送到多个 git 分支? - How can I work on one java project and push my code to multiple git branches as I progress? 如何从Eclipse项目中仅将单个.java文件提交到git? - How can I commit only a single .java file to git from an eclipse project? 如何找到在 Java 连接中运行的所有 SQL 更新(从事务开始到提交)? - How can I find all the SQL updates run in a Java Connection (from transaction start to commit)? 如何从 java 中设置 umask? - How can I set the umask from within java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM