File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed
contributing/documentation Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -136,9 +136,38 @@ even remove any content and do your best to comply with the
136
136
137
137
**Step 6. ** **Push ** the changes to your forked repository:
138
138
139
+ Rebase your branch
140
+ ~~~~~~~~~~~~~~~~~~~~~~~~
141
+
142
+ Before submitting your PR, update your branch (needed if it takes you a
143
+ while to finish your changes):
144
+
145
+ .. code-block :: terminal
146
+
147
+ $ git checkout 6.x
148
+ $ git fetch upstream
149
+ $ git merge upstream/6.x
150
+ $ git checkout improve_install_article
151
+ $ git rebase 6.x
152
+
153
+ .. tip ::
154
+
155
+ Replace ``6.x `` with the branch you selected previously (e.g. ``5.4 ``).
156
+
157
+ When doing the ``rebase `` command, you might have to fix merge conflicts.
158
+ ``git status `` will show you the *unmerged * files. Resolve all the conflicts,
159
+ then continue the rebase:
160
+
161
+ .. code-block :: terminal
162
+
163
+ $ git add ... # add resolved files
164
+ $ git rebase --continue
165
+
166
+ Make sure that the docs still build correctly and push your branch remotely:
167
+
139
168
.. code-block :: terminal
140
169
141
- $ git push origin improve_install_article
170
+ $ git push --force origin improve_install_article
142
171
143
172
The ``origin `` value is the name of the Git remote that corresponds to your
144
173
forked repository and ``improve_install_article `` is the name of the branch you
You can’t perform that action at this time.
0 commit comments