Skip to content

Commit 30c0934

Browse files
committed
docs: additional guidance about amending commits
In my first contribution, I got the amending guidance wrongly and amended my commit to attend some requested changes. So I added some more lines in the docs to help the further contributors to don't make the same mistake that I did
1 parent cf69964 commit 30c0934

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/guides/contributing/pull-requests.md

+2
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ $ git commit --amend
318318
$ git push --force-with-lease origin my-branch
319319
```
320320

321+
Amend your last commit just to fix some minor mistake you may have noticed before any reviewing, though. To make the reviewing process simpler, when some changes are requested it's preferable to add a new commit.
322+
321323
There are a number of more advanced mechanisms for managing commits using
322324
`git rebase` that can be used, but are beyond the scope of this guide.
323325

0 commit comments

Comments
 (0)