英文:
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.
专注分享java语言的经验与见解,让所有开发者获益!
评论