We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6546018 + 6cf4c3f commit 1c1aefdCopy full SHA for 1c1aefd
1 file changed
contributing/workflow.md
@@ -199,6 +199,16 @@ Latest commit only:
199
> git push --force-with-lease origin your-branch
200
```
201
202
+Only the specified number of commits:
203
+```console
204
+> git switch your-branch
205
+> git rebase -i HEAD~3 --exec 'git commit --amend --no-edit --no-verify -S'
206
+> git push --force-with-lease origin your-branch
207
+```
208
+
209
+> [!NOTE]
210
+> `HEAD~3` specifies the last 3 commits in the PR. Change *3* to the actual number of commits.
211
212
All commits:
213
```console
214
> git switch your-branch
0 commit comments