Skip to content

Commit 25a67ca

Browse files
authored
Clear instructions not to force push (#16861)
1 parent d9a6f0e commit 25a67ca

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ When opening pull requests, do the following:
5353
documentation if possible.
5454
- Don't include a testing plan.
5555
- Add the name of the agent used to the PR description.
56+
- Never squash commits or force push.

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ to your PR to fix any minor issues, but this is not always possible.
476476
If a PR lingers with unresolved problems for too long, we may close it
477477
([see below](#closing-stale-prs)).
478478

479-
Also, do not squash your commits or use `git commit --amend` after you have submitted a pull request, as this
479+
Also, do not squash your commits, force push, or use `git commit --amend` after
480+
you have submitted a pull request, as this
480481
erases context during review. We will squash commits when the pull request is merged.
481482
This way, your pull request will appear as a single commit in our git history, even
482483
if it consisted of several smaller commits.

0 commit comments

Comments
 (0)