V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
andybest
V2EX  ›  问与答

Git Commit Message里的Author与Committer有什么区别?

  •  
  •   andybest · Aug 12, 2013 · 5824 views
    This topic created in 4652 days ago, the information mentioned may be changed or developed.
    1。为什么要同时有Author与Committer?
    2。如何为这两个字段设置不同的名字?
    1 replies    1970-01-01 08:00:00 +08:00
    jjgod
        1
    jjgod  
       Aug 12, 2013   ❤️ 2
    1. Author 是 patch 的作者,Committer 是把 patch 应用到 repository 里的人 (很多项目限制只有少数人可以 apply patch,但大家都可以把 patch 发送给这些人)。

    2. git commit --reset-author 或者 --author="Name" 可以设置 Author。committer 只能通过 commit 得到。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   994 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 22:09 · PVG 06:09 · LAX 15:09 · JFK 18:09
    ♥ Do have faith in what you're doing.