Skip to content

Commit d7d1fde

Browse files
authored
chore: update workflow.md
Added signing old commit to only commit in PR
1 parent fd6d674 commit d7d1fde

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 commits in PR:
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` is defined have 3 commit in PR, change number *3* with the number you have in commit.
211+
202212
All commits:
203213
```console
204214
> git switch your-branch

0 commit comments

Comments
 (0)