Skip to content

Instantly share code, notes, and snippets.

@weirdpattern
Last active November 29, 2018 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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