Skip to content

Commit 28780a8

Browse files
authored
DOC remove outdated instructions to delete branch (#51329)
1 parent 107c64f commit 28780a8

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

doc/source/development/contributing.rst

-23
Original file line numberDiff line numberDiff line change
@@ -331,29 +331,6 @@ To automatically fix formatting errors on each commit you make, you can
331331
set up pre-commit yourself. First, create a Python :ref:`environment
332332
<contributing_environment>` and then set up :ref:`pre-commit <contributing.pre-commit>`.
333333

334-
Delete your merged branch (optional)
335-
------------------------------------
336-
337-
Once your feature branch is accepted into upstream, you'll probably want to get rid of
338-
the branch. First, merge upstream main into your branch so git knows it is safe to
339-
delete your branch::
340-
341-
git fetch upstream
342-
git checkout main
343-
git merge upstream/main
344-
345-
Then you can do::
346-
347-
git branch -d shiny-new-feature
348-
349-
Make sure you use a lower-case ``-d``, or else git won't warn you if your feature
350-
branch has not actually been merged.
351-
352-
The branch will still exist on GitHub, so to delete it there do::
353-
354-
git push origin --delete shiny-new-feature
355-
356-
357334
Tips for a successful pull request
358335
==================================
359336

0 commit comments

Comments
 (0)