Git:如何关闭有关提交消息的两个问题?

问题描述 投票:0回答:3

我尝试

git commit -m "close #1 close #2" 
git push origin develop

但它仅解决#1问题。如何关闭两个或更多个有关提交消息的问题?

git
3个回答
2
投票
git commit -m "Closes #1, closes #2, closes #3; rest of commit message."

0
投票

请参阅https://help.github.com/en/github/managing-your-work-on-github/closing-issues-using-keywords#closing-multiple-issues

要关闭多个问题,请在每个问题参考之前加上以下其中一个以上关键字。您必须在每个问题之前使用关键字工作关​​键字的参考。

例如,这关闭#34,关闭#23,然后关闭example_user / example_repo#42将会关闭问题#34和#23同一存储库,并在“ example_user / example_repo”中发出#42存储库。


0
投票

您可以使用以下任何关键字通过提交消息来关闭问题:

close, closes, closed, fixes, fixed

如何关闭提交消息的两个或多个问题?

您可以在提交消息中使用逗号分隔的列表。

© www.soinside.com 2019 - 2024. All rights reserved.