Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b2a898

Browse files
authored
Merge pull request #16533 from timhoffm/doc-commit-amend
Recommend to amend pull requests
2 parents 05a09d6 + 4863d05 commit 3b2a898

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/devel/coding_guide.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ When making a PR, pay attention to:
3232
feedback from the developers. You may mark these as
3333
`draft pull requests <https://help.github.com/en/articles/about-pull-requests#draft-pull-requests>`_
3434
on GitHub.
35+
* When updating your PR, instead of adding new commits to fix something, please
36+
consider amending your initial commit(s) to keep the history clean.
37+
You can achieve this using::
38+
39+
git commit --amend --no-edit
40+
git push [your-remote-repo] [your-branch] --force-with-lease
3541

3642
See also :ref:`contributing` for how to make a PR.
3743

0 commit comments

Comments
 (0)