Skip to content

Commit

Permalink
Merge pull request codeigniter4#8636 from ddevsr/patch-1
Browse files Browse the repository at this point in the history
docs: update workflow.md
  • Loading branch information
kenjis committed Mar 24, 2024
2 parents 6546018 + 6cf4c3f commit 1c1aefd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contributing/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,16 @@ Latest commit only:
> git push --force-with-lease origin your-branch
```

Only the specified number of commits:
```console
> git switch your-branch
> git rebase -i HEAD~3 --exec 'git commit --amend --no-edit --no-verify -S'
> git push --force-with-lease origin your-branch
```

> [!NOTE]
> `HEAD~3` specifies the last 3 commits in the PR. Change *3* to the actual number of commits.
All commits:
```console
> git switch your-branch
Expand Down

0 comments on commit 1c1aefd

Please sign in to comment.