-
-
Notifications
You must be signed in to change notification settings - Fork 783
Rebasing a PR
Maxim Belkin edited this page Oct 16, 2018
·
7 revisions
If you have been asked to rebase a PR, please follow these steps:
- Checkout and update the
gh-pages
branch
git checkout gh-pages
git pull https://github.com/swcarpentry/python-novice-inflammation
- Rebase the branch you used to create your Pull Request
git rebase gh-pages your-branch
- (Optional) Resolve encountered conflicts If you encounter conflicts, resolve them and continue the rebase:
# resolve conflicts
git add file-with-resolved-conflict.ext
git rebase --continue
If conflicts seem to be too difficult, abort the rebase and ask maintainers to rebase the branch for you. To abort the rebase:
git rebase --abort
- Push your changes to your fork
git push --force your-fork