@@ -244,7 +244,7 @@ Check that all tests still pass and push your branch remotely:
244
244
245
245
..code-block ::bash
246
246
247
- $ git push -f origin BRANCH_NAME
247
+ $ git push --force origin BRANCH_NAME
248
248
249
249
Make a Pull Request
250
250
~~~~~~~~~~~~~~~~~~~
@@ -369,11 +369,11 @@ patch. Before re-submitting the patch, rebase with ``upstream/master`` or
369
369
..code-block ::bash
370
370
371
371
$ git rebase -f upstream/master
372
- $ git push -f origin BRANCH_NAME
372
+ $ git push --force origin BRANCH_NAME
373
373
374
374
..note ::
375
375
376
- when doing a ``push --force ``, always specify the branch name explicitly
376
+ When doing a ``push --force ``, always specify the branch name explicitly
377
377
to avoid messing other branches in the repo (``--force `` tells Git that
378
378
you really want to mess with things so do it carefully).
379
379
@@ -383,10 +383,9 @@ convert many commits to one commit. To do this, use the rebase command:
383
383
..code-block ::bash
384
384
385
385
$ git rebase -i upstream/master
386
- $ git push -f origin BRANCH_NAME
386
+ $ git push --force origin BRANCH_NAME
387
387
388
- The number 3 here must equal the amount of commits in your branch. After you
389
- type this command, an editor will popup showing a list of commits:
388
+ After you type this command, an editor will popup showing a list of commits:
390
389
391
390
..code-block ::text
392
391