gitlab4j – 从Java创建提交到分支

huangapple 未分类评论44阅读模式
英文:

gitlab4j - create a commit to branch from Java

问题

我正在使用gitlab4j API访问我的GitLab仓库。
我想将本地系统中的一个文本文件提交到特定的分支。
通过gitlab4j API,我应该如何实现这个目标?

英文:

I am using gitlab4j API to access my GitLab Repository.
I want to commit a text file from my local system to specific branch.
How do I achieve this via gitlab4j API?

答案1

得分: 0

根据文档所示,似乎存在一个提交 API,您可以使用它来管理提交。

提交 API 具有一个方法用于创建提交,在此方法中您可以指定分支名称、提交信息以及其他详细信息。

英文:

As far as I see in the documentation, there is a Commit API that you can use to manage commits.

The Commit API has a method to create a commit where you can specify the branch name, commit message and other details.

huangapple
  • 本文由 发表于 2020年4月4日 22:48:25
  • 转载请务必保留本文链接:https://java.coder-hub.com/61029863.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定