Skip to content

Commit 7e586aa

Browse files
committed
added a note per @stof
1 parent 77ffd39 commit 7e586aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contributing/code/patches.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ with master, don't merge; and force the push to the origin:
243243
$ git rebase -f upstream/master
244244
$ git push -f origin BRANCH_NAME
245245
246+
.. note::
247+
248+
when doing a push -f (or --force), always specify the branch name explicitly
249+
to avoid messing other branches in the repo (--force tells git that you
250+
really want to mess with things so do it carefully).
251+
246252
Often, moderators will ask you to "squash" your commits. This means you will
247253
convert many commits to one commit. To do this, use the rebase command:
248254

0 commit comments

Comments
 (0)