Is there any way to incrementally build commit messages in git?

前端 未结 3 1013
自闭症患者
自闭症患者 2021-02-13 02:57

I\'m wondering if it is possible to build git commit messages incrementally, documenting what I\'m doing as I make code changes:

  1. Check out and begin work
3条回答
  •  鱼传尺愫
    2021-02-13 03:34

    If you really want to do it like this (I don't recommend you to do it that way though), then try this:

    1. Check out and begin work
    2. Make some code changes
    3. git commit
    4. Make some further code changes
    5. git commit --amend
    6. Repeat 4 & 5
    7. git commit --amend --reset-author to further reset the timestamp

提交回复
热议问题