Skip to content

Instantly share code, notes, and snippets.

@weirdpattern
Last active November 29, 2018 05:34
Show Gist options
  • Save weirdpattern/ea9fc44a4af30a0ec085d1a1ec6f53b7 to your computer and use it in GitHub Desktop.
Save weirdpattern/ea9fc44a4af30a0ec085d1a1ec6f53b7 to your computer and use it in GitHub Desktop.
2018.11.28.rebase-a-pull-request
git clone https://github.com/<user>/<repository>
i.e
git clone https://github.com/weirdpattern/eslint-plugin-typescript
git remote add <remote> https://github.com/<other_user>/<remote_repository>
i.e.
git remote add upstream https://github.com/bradzacher/eslint-plugin-typescript
git checkout <branch_to_rebase>
i.e.
git checkout camelcase-rule
git fetch <remote> <branch>
i.e.
git fetch upstream master
git rebase <remote>/<branch>
i.e.
git rebase upstream/master
git add .
git rebase --continue
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment