What's the difference between “squash” and “fixup” in Git/Git Extension?

前端 未结 6 1935
夕颜
夕颜 2020-12-07 15:14

I\'ve been using Git Extensions for a while now (it\'s awesome!) but I haven\'t found a simple answer to the following:

Sometimes, when typing a com

6条回答
  •  旧巷少年郎
    2020-12-07 15:58

    From git-rebase doc, "interactive mode" section:

    If you want to fold two or more commits into one, replace the command "pick" for the second and subsequent commits with "squash" or "fixup". If the commits had different authors, the folded commit will be attributed to the author of the first commit. The suggested commit message for the folded commit is the concatenation of the commit messages of the first commit and of those with the "squash" command, but omits the commit messages of commits with the "fixup" command.

提交回复
热议问题