Readhub - 开发者资讯 ( ) • 2021-06-23 01:51
This article will cover the basic methods from the JGit library that you can use to do Git actions from Java code ... In contrast to the Git command line, a file pattern must exist also if 'update' is set to True as there is no concept of a working directory here.— the definition from the JGit Java doc for that method ... If you want to Handle different actions of Git command automatically, you can build your tool that only calls specific classes from this library without constructing the Git command and execute that command through another process from java and to extract the output for the executed command and parse it.