git
› Pro Git
› Atlassian Git Tutorial
› Pro Git 简体中文翻译
› GitX
Livid
406.45D
549.48D
V2EX  ›  git

每次 git commit 的 message(英文)的末尾是否需要英文的句号呢?

  •  
  •   Livid ·
    PRO
    · Aug 27, 2013 · 6606 views
    This topic created in 4827 days ago, the information mentioned may be changed or developed.
    其实这是我自从开始用版本控制系统就一直纠结的一个问题。
    25 replies  •  1970-01-01 08:00:00 +08:00
    yangqi
    yangqi
    Aug 27, 2013
    1
    这个真的不重要,跟着你的感觉走,实在不行就掷硬币
    jjgod
    jjgod
    Aug 27, 2013❤️1
    2
    message 不加,description 要加。
    lightening
    lightening
    Aug 27, 2013❤️1
    3
    不需要。我的 commit message 不是完整的句子。(一般缺主语)
    aveline
    aveline
    Aug 27, 2013
    4
    一般不加,看個人習慣吧。

    我一般是這麼寫 Commit Message 的,不知道其他人怎麼寫。。。

    thedevil5032
    thedevil5032
    Aug 27, 2013 via iPad
    5
    果断加,丢不掉的强迫症,哈哈。
    wwqgtxx
    wwqgtxx
    Aug 27, 2013 via Android
    6
    从来不加
    jianghu52
    jianghu52
    Aug 27, 2013
    7
    我自己用的git版本都是写中文的。
    alexrezit
    alexrezit
    Aug 27, 2013
    8
    我都加了.
    hustlzp
    hustlzp
    Aug 27, 2013
    9
    不加
    013231
    013231
    Aug 27, 2013
    10
    如果message是個完整的句子就加句號, 不是就不加.
    wy315700
    wy315700
    Aug 27, 2013
    11
    @jianghu52 中文+1 看得懂最重要
    rrrrutdk
    rrrrutdk
    Aug 27, 2013❤️1
    12
    把Git Commit Message当成一封邮件看待,首行为标题。
    raptor
    raptor
    Aug 27, 2013
    13
    不加
    Keyes
    Keyes
    Aug 27, 2013
    14
    <改动类型>:<详细说明>

    改动类型:新功能、功能增强、BUG-FIX等
    详细说明:字面意思

    一句话无标点不加句号
    一句话以上加句号
    toctan
    toctan
    Aug 27, 2013❤️1
    15
    DO

    - Write the summary line and description of what you have done in the imperative mode, that is as if you were commanding someone. Write “fix”, “add”, “change” instead of “fixed”, “added”, “changed”.
    - Always leave the second line blank.
    - Line break the commit message (to make the commit message readable without having to scroll horizontally in gitk).

    DON’T

    - Don’t end the summary line with a period.

    https://github.com/erlang/otp/wiki/Writing-good-commit-messages
    http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
    dalang
    dalang
    Aug 27, 2013
    16
    @aveline 请问截图的软件叫什么名字?
    NemoAlex
    NemoAlex
    Aug 27, 2013
    17
    @dalang 这个目测是用QQ截的
    dalang
    dalang
    Aug 27, 2013
    18
    @NemoAlex
    @aveline
    抱歉问得有点歧义了,我是问截图里的git客户端软件叫什么名字?
    toctan
    toctan
    Aug 27, 2013
    19
    @Keyes 更加适当的格式:

    Capitalized, short (50 chars or less) summary

    More detailed explanatory text, if necessary. Wrap it to about 72
    characters or so. In some contexts, the first line is treated as the
    subject of an email and the rest of the text as the body. The blank
    line separating the summary from the body is critical (unless you omit
    the body entirely); tools like rebase can get confused if you run the
    two together.

    Write your commit message in the imperative: "Fix bug" and not "Fixed bug"
    or "Fixes bug." This convention matches up with commit messages generated
    by commands like git merge and git revert.

    Further paragraphs come after blank lines.

    - Bullet points are okay, too

    - Typically a hyphen or asterisk is used for the bullet, preceded by a
    single space, with blank lines in between, but conventions vary here

    - Use a hanging indent

    http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
    NemoAlex
    NemoAlex
    Aug 27, 2013
    20
    @dalang http://www.sourcetreeapp.com/
    OS X 平台最棒的免费 Git/Mercurial GUI 工具
    CoX
    CoX
    Aug 27, 2013
    21
    我个人习惯是写上bug号~~
    aveline
    aveline
    Aug 27, 2013
    22
    @dalang SourceTree,Atlassian 家的,Windows 下也有客戶端,非常好用。
    vibbow
    vibbow
    Aug 27, 2013
    23
    @aveline 擦,SourceTree在Mac下那么好看...
    vibbow
    vibbow
    Aug 27, 2013
    24
    @jianghu52 @wy315700 我的git服务器都在本地。
    所以也果断中文啊...
    ssword
    ssword
    Aug 27, 2013 via Android
    25
    第一句相当于标题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2161 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 75ms · UTC 07:11 · PVG 15:11 · LAX 23:11 · JFK 02:11
    ♥ Do have faith in what you're doing.