评论一行在Github没有提交? [英] Comment on a line in Github without a commit?
问题描述
在github中,您可以在提交中对行进行注释。
In github, you can comment on lines in a commit. Is there a way to comment on a line, while viewing a file in a branch, without having a particular commit?
推荐答案
不幸的是,有一种方法可以在分支中查看文件
Unfortunately it is not possible to comment on a line in Github without a commit.
但是你可以创建文件中的行的链接(点击在浏览器栏上的行和复制链接)。例如,您可以在您的问题中使用此链接来讨论代码行:
But you can create links to lines in your file (click on line and copy link on browser bar). For example you can use this links in your issues to discuss about code line:
https://github.com/sebastianbergmann/phpunit/blob/master/src/Runner/StandardTestSuiteLoader.php#L72
更新
您还可以按住shift键获取一行链接的链接
You can also hold shift to obtain a link to a block of lines
这篇关于评论一行在Github没有提交?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!