Skip to content

intended workflow when interacting with a git repository, specifically for github PRs where upstream doesn't like you force-pushing #411

Answered by martinvonz
zygoloid asked this question in Q&A
Discussion options

You must be logged in to vote

Good question! I know that many (probably even most) GitHub projects want you to address code review comments by adding new commits on top. These projects typically integrate PRs by merging or squashing. In this project, we instead amend commits and try to keep a single commit per logical change and then integrate PRs by rebasing. That matches what e.g. the Git and Mercurial projects require (w.r.t. keeping commits clean - the Git project integrates features by merging), and also what we do internally at Google with the Fig tool. There can still be multiple commits per PR, although I only do that to work around GitHub's poor support for stacked PRs (I still expect each commit to be review…

Replies: 1 comment 16 replies

Comment options

You must be logged in to vote
16 replies
@yuja
Comment options

yuja Jul 6, 2022
Maintainer

@arxanas
Comment options

arxanas Jul 6, 2022
Collaborator

@martinvonz
Comment options

@yuja
Comment options

yuja Jul 7, 2022
Maintainer

@martinvonz
Comment options

Answer selected by zygoloid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants