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

Skip to content

Commit c019c7b

Browse files
committed
DOC: document how to backport a PR
1 parent f6f9c8c commit c019c7b

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

doc/devel/coding_guide.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,30 @@ PR Review guidelines
183183
* Be patient with new contributors.
184184

185185

186+
Backports
187+
=========
188+
189+
190+
When doing back ports please include the branch you backported the
191+
commit to along with the SHA in a comment on the original PR.
192+
193+
A quick guide to how to back port a merge commit::
194+
195+
git remote update
196+
git checkout target_branch
197+
git merge --ff-only matplotlib/target_branch
198+
git cherry-pick -m 1 TARGET_SHA
199+
gitk # to look at it
200+
# local tests? (use your judgment)
201+
git push DANGER target_branch
202+
# leave a comment on PR noting sha of the resulting commit
203+
# from the cherry-pick + branch it was moved to
204+
205+
here matplotlib is a read-only remote to the matplotlib/matplotlib repo and DANGER in a read/write remote to the matplotlib/matplotlib repo.
206+
207+
These commands work on git 2.7.1.
208+
209+
186210
Style guide
187211
===========
188212

0 commit comments

Comments
 (0)