public class FyyGitUtilsV2 extends Object
| 构造器和说明 |
|---|
FyyGitUtilsV2(String gitDir,
String username,
String password,
String codeHttpUrl,
String code,
String token,
String gitlabUrl)
已过时。
改为使用
#GitUtilsV2(String, String, String, String, String) |
FyyGitUtilsV2(String gitDir,
String username,
String password,
String codeHttpUrl,
String token,
String name,
String desc,
String[] groups,
String gitlabUrl,
String code) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkOut(String branch)
检出某个分支代码
|
boolean |
close() |
boolean |
commit(String branch)
提交某个分支
|
boolean |
createBranchForRemote(String sourceBranch,
String targetBranch)
以sourceBranch远端分支为基础创建分支
|
String |
createProject() |
boolean |
delete15Tag() |
boolean |
deleteBreanch(String source,
String target)
强制删除远端以及本地分支
|
String |
getBranch(org.eclipse.jgit.api.Git gitv2)
获取当前分支
|
org.eclipse.jgit.api.Git |
getGitv2() |
boolean |
init(String branch)
已过时。
改为使用
#init(String, boolean) |
boolean |
init(String branch,
boolean checkout,
boolean deleteFile)
初始化仓库
|
boolean |
open()
打开仓库
|
boolean |
protectBranch(String sourceBranch) |
boolean |
pull(String branch)
强制更新当前分支
|
boolean |
push(String branch)
已过时。
改为使用
push(String, int) |
boolean |
push(String branch,
int timeout)
强制推送分支
|
boolean |
reset(String sourceBranch,
String targetBranch,
boolean originReset,
boolean committag)
以sourceBranch分支重置分支targetBranch
|
boolean |
unprotectBranch(String sourceBranch) |
@Deprecated public FyyGitUtilsV2(String gitDir, String username, String password, String codeHttpUrl, String code, String token, String gitlabUrl)
#GitUtilsV2(String, String, String, String, String)public org.eclipse.jgit.api.Git getGitv2()
public boolean open()
public boolean close()
public String getBranch(org.eclipse.jgit.api.Git gitv2)
gitv2 - public boolean deleteBreanch(String source, String target)
branch - public boolean delete15Tag()
@Deprecated public boolean init(String branch)
#init(String, boolean)url - public boolean init(String branch, boolean checkout, boolean deleteFile)
checkout - markurl - public boolean checkOut(String branch)
branch - public boolean reset(String sourceBranch, String targetBranch, boolean originReset, boolean committag)
originReset - committag - TODObranch - public boolean pull(String branch)
branch - public boolean commit(String branch)
branch - @Deprecated public boolean push(String branch)
push(String, int)branch - force - public boolean push(String branch, int timeout)
branch - timeout - markforce - public boolean createBranchForRemote(String sourceBranch, String targetBranch)
sourceBranch - targetBranch - public boolean unprotectBranch(String sourceBranch)
public boolean protectBranch(String sourceBranch)
public String createProject()
Copyright © 2023. All rights reserved.