@@ -150,7 +150,7 @@ Rebasing a Pull Request (PR)
150
150
When working on a PR, changes may occur in the parent branch (usually master).
151
151
This can lead to conflict with changes in your branch. The conflicts can be
152
152
trivial: for example both the parent branch and your branch add an entry to
153
- the top of `CHANGELOG `. Git can not unambiguously tell what to with both
153
+ the top of `CHANGELOG `. Git can not unambiguously tell what to do with both
154
154
changes (should one go above the other? if so, which order? should it try to
155
155
merge them?) so it declares the branches can not be merged
156
156
cleanly. GitHub can only automatically merge PR without conflicts, so you will
@@ -206,10 +206,11 @@ and git will then give a bunch of feed back::
206
206
If you prefer to skip this patch, run "git rebase --skip" instead.
207
207
To check out the original branch and stop rebasing, run "git rebase --abort".
208
208
209
- A number of commits could be cleanly applied to
210
- the tip of `matplotlib/master `. However, git may eventually hit a commit
211
- that had conflicts: in the example above, this happens in the file
212
- `lib/matplotlib/backends/backend_gtk3.py `). For more verbose information run ::
209
+ We see that a number of commits could be cleanly applied to the tip of
210
+ `matplotlib/master `. However, git may eventually hit a commit that
211
+ had conflicts: in the example above, this happens in the file
212
+ `lib/matplotlib/backends/backend_gtk3.py `). For more verbose
213
+ information run ::
213
214
214
215
$ git status
215
216
@@ -226,9 +227,10 @@ that had conflicts: in the example above, this happens in the file
226
227
227
228
no changes added to commit (use "git add" and/or "git commit -a")
228
229
229
- This tells you exactly where the conflict is and provides some advice
230
- on how to proceed. Opening up the file in question, you will see
231
- blocks that look something like this::
230
+ This tells you exactly where the conflict (caused by the target branch
231
+ and your commits modifying the same lines of code) is and provides
232
+ some advice on how to proceed. Opening up the file in question, you
233
+ will see blocks that look something like this::
232
234
233
235
<<<<<<< HEAD
234
236
=======
@@ -237,10 +239,11 @@ blocks that look something like this::
237
239
238
240
The block of code between `<<<<<<< ` and `======= ` is the code on the
239
241
target branch (in this case nothing) and the code between `======= `
240
- and `>>>>>>> ` is the code on your branch. The rest of the code is the
241
- same between the two branches. You need to determine how to resolve the
242
- conflict (in this case, the code on HEAD is correct). Once you have
243
- resolved all the conflicts, `add ` the file to the index::
242
+ and `>>>>>>> ` is the code in the commit you are trying to rebase. The
243
+ rest of the code is either the same or the diff can be unambiguously
244
+ applied. You need to determine how to resolve the conflict (in this
245
+ case, the code on HEAD is correct). Once you have resolved all the
246
+ conflicts, `add ` the file to the index::
244
247
245
248
$ git add lib/matplotlib/backends/backend_gtk3.py
246
249
0 commit comments