Squash to only one “proper” commit for github pull request

后端 未结 5 1025
旧巷少年郎
旧巷少年郎 2020-12-12 21:54

I have a repo on github which someone else (Bob, for the sake of argument) has issued a pull request for. His code\'s not perfect, so we go through a few rounds of markups.

5条回答
  •  清歌不尽
    2020-12-12 22:37

    Note that Bob doesn't have to squash his commits when he is making a GitHub PR.
    Since March 2016, you can leave that operation to the maintainer (you) accepting your PR.

    See "Squash your commits" and its new documentation

    This is a new option which lets you force commit squashing on all pull requests merged via the merge button.

提交回复
热议问题