Github显示我的提交已由2位作者推动:我和我 [英] Github shows that my commits have been pushed by 2 authors: me and me
问题描述
GitHub显示我的提交已由两位作者推送:我和我.
如何关闭它?
也就是说,如何避免将我"和我"(是我的GitHub帐户的两倍)视为提交的作者"?
首先,确保这是作者身份,而不是作者"和提交者".
如果我们要谈论两位作者(如下图所示),那么这是最近的,因为GitHub仅在几天前(2018年1月)宣布过:
"
如何关闭它?
确保提交消息预告片中没有任何共同创作人
字段.
如果不这样做,请将其报告给GitHub支持,因为这很可能是由其支持导致的错误上述最新功能.
GitHub shows that my commits have been pushed by 2 authors: me and me.
How can I turn it off?
That is, how can I avoid seeing "me" and "me" (twice my GitHub account) as "authors" of a commit?
First, make sure this is authorship, not "author" and "committer".
If we are talking about two authors (as seen in the picture below) ,then this recent, since GitHub only announced it a few days ago (January 2018):
"Commit together with co-authors"
To add co-authors to a commit, just add one or more "Co-authored-by" trailers to the end of the commit message:
Commit message Co-authored-by: Joel Califa <602352+califa@users.noreply.github.com> Co-authored-by: Matt Clark <44023+mclark@users.noreply.github.com>
Include your trailers at the end of your commit message, and have at least one line of white space before them.
See the official documentation.
In your case, that means any commit with multiple "Co-authored by
" would be displayed that way:
How can I turn it off?
Make sure you don't have any Co-authored-by
field in your commit message trailer.
If you don't, report that to GitHub support, as it is most likely a bug resulting from their recent feature described above.
这篇关于Github显示我的提交已由2位作者推动:我和我的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!