Skip to content

Commit e6f328b

Browse files
committed
tweak git instructions
1 parent c811ab9 commit e6f328b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/contributing.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,15 @@ Creating a branch
106106
Before you do any new work or submit a pull request, please open an issue on GitHub to
107107
report the bug or propose the feature you'd like to add.
108108

109-
It's best to create a new, separate branch for each piece of work you want to do. E.g.::
109+
It's best to synchronize your fork with the upstream repository, then create a
110+
new, separate branch for each piece of work you want to do. E.g.::
110111

112+
git checkout master
111113
git fetch upstream
112-
git checkout -b shiny-new-feature upsteam/master
114+
git rebase upstream/master
115+
git push
116+
git checkout -b shiny-new-feature
117+
git push -u origin shiny-new-feature
113118

114119
This changes your working directory to the 'shiny-new-feature' branch. Keep any changes in
115120
this branch specific to one bug or feature so it is clear what the branch brings to

0 commit comments

Comments
 (0)