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