Package | Description |
---|---|
cn.orionsec.kit.ext.vcs.git |
Modifier and Type | Method and Description |
---|---|
Gits |
Gits.auth(String username,
char[] password)
认证用户
|
Gits |
Gits.auth(String username,
String password) |
Gits |
Gits.checkout(String branchName)
检出分支
|
Gits |
Gits.clean()
清空工作目录其他文件
|
static Gits |
Gits.clone(String url,
File path) |
static Gits |
Gits.clone(String url,
File path,
String username,
char[] password)
clone 仓库
可以使用 accessToken
github username: token password: ''
github username: '' password: token
gitee username: username password: token
gitlab username: oauth2 password: token url: https://oauth2:token@url
|
static Gits |
Gits.clone(String url,
File path,
String username,
String password) |
Gits |
Gits.fetch() |
Gits |
Gits.fetch(String remote)
fetch
|
static Gits |
Gits.of(File path) |
static Gits |
Gits.of(org.eclipse.jgit.api.Git git) |
static Gits |
Gits.of(org.eclipse.jgit.lib.Repository repo) |
Gits |
Gits.pull() |
Gits |
Gits.pull(String remote) |
Gits |
Gits.pull(String remote,
String remoteBranch)
pull
|
Gits |
Gits.push(String remote)
push
|
Gits |
Gits.rebase() |
Gits |
Gits.rebase(org.eclipse.jgit.api.RebaseCommand.Operation operation)
rebase
|
Gits |
Gits.reset(String commitId) |
Gits |
Gits.reset(String commitId,
org.eclipse.jgit.api.ResetCommand.ResetType type)
还原版本
|
Copyright © 2024. All rights reserved.