Last active
May 5, 2017 23:26
-
-
Save awgv/de312a1f18bc5ad7e8afb5e4afadd17b to your computer and use it in GitHub Desktop.
@sstok on updating forks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
git fetch upstream | |
git checkout remote_branch | |
git reset --hard upstream/remote_branch | |
git checkout working_branch | |
git reset --hard upstream/remote_branch | |
git cherry-pick commit // The one that you need to keep. | |
git push -f origin local_branch:local_branch | |
``` | |
This should do the trick 👍 always prefer to rebase when puling instead of merging as creates ugly merge bubbles. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rebase can be done this way:
Or this way: