V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
andybest
V2EX  ›  问与答

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

  •  
  •   andybest · 2013-08-12 19:12:57 +08:00 · 5324 次点击
    这是一个创建于 3925 天前的主题,其中的信息可能已经有所发展或是发生改变。
    1。为什么要同时有Author与Committer?
    2。如何为这两个字段设置不同的名字?
    1 条回复    1970-01-01 08:00:00 +08:00
    jjgod
        1
    jjgod  
       2013-08-12 19:16:18 +08:00   ❤️ 2
    1. Author 是 patch 的作者,Committer 是把 patch 应用到 repository 里的人 (很多项目限制只有少数人可以 apply patch,但大家都可以把 patch 发送给这些人)。

    2. git commit --reset-author 或者 --author="Name" 可以设置 Author。committer 只能通过 commit 得到。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2744 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:08 · PVG 12:08 · LAX 21:08 · JFK 00:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.