我一天的工作内容如下: 阅读Gitlab-powered问题跟踪器上的一个问题, 修复该问题, 提交并推送到同一台Gitlab-powered Git服务器, 标记问题为已关闭。 如何在提交时自动关闭问题以去除第4个步骤?
使用以下语法提交并推送:git commit -m "Sort more efficiently" -m "Closes #843" git push 这将提交并关闭该问题。 请注意,与Github不同,单个-m无法生效。 以下内容将出现在问题页面上: 参考资料: https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically How to commit a change with both "message" and "description" from the command line?
根据来自Gitlab的此链接,您可以使用“fixes”或“closes”等各种词语来实现这一点。它不需要在单独的一行中。因此,您可以有以下消息: Fixes#20。我不得不用“bar”替换“foo”。 那就会关闭问题#20。
git commit -m "更高效地排序" -m "Closes backlog#843"
。 - KargWaredevelop
分支上工作? - Alex O'Connor