Skip to content

Commit 1c1aefd

Browse files
authored
Merge pull request #8636 from ddevsr/patch-1
docs: update workflow.md
2 parents 6546018 + 6cf4c3f commit 1c1aefd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contributing/workflow.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,16 @@ Latest commit only:
199199
> git push --force-with-lease origin your-branch
200200
```
201201

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+
202212
All commits:
203213
```console
204214
> git switch your-branch

0 commit comments

Comments
 (0)