Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
How to contrib changes (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Cote authored and samjhecht committed Sep 6, 2016
1 parent cb8c7bd commit 8960ad6
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,36 +116,3 @@ GitHub Workflow
.. sourcecode:: bash

$ git push origin --force feature-xxx

FAQ
~~~

Help! I merged changes from upstream and cannot figure out how to resolve conflicts when rebasing!

Never fear! If you occasionally merged upstream/master, here is another way to squash your changes into a single commit:

1. First, rename your existing branch to something else, e.g. `feature-xxx-unclean`

.. sourcecode:: bash

$ git branch -m feature-xxx-unclean


2. Checkout a new branch with the original name `feature-xxx` from upstream. This branch will supercede our old one.

.. sourcecode:: bash

$ git checkout -b feature-xxx upstream/master

3. Then merge your changes in your original feature branch `feature-xxx-unclean` and create a single commit.

.. sourcecode:: bash

$ git merge --squash feature-xxx-unclean
$ git commit

4. You can now submit this new branch and create or replace your existing pull request.

.. sourcecode:: bash

$ git push origin [--force] feature-xxx:feature-xxx

0 comments on commit 8960ad6

Please sign in to comment.