GitHub conflicts¶
Sometimes a pull request will have a conflict with the base branch. These conflicts can be resolved by rebasing your branch. See more information about rebasing here.
Rebase instructions using command line:¶
- checkout branch that has conflicts
git rebase master
- Make changes in file (open the mondo-edit.obo file in a text editor (like Sublime) and search for the conflicts. These are usually preceded by <<<<<. Fix the conflicts, then save.)
git add -A
git rebase --continue
git push -f
Rebase instructions using GitHub Desktop:¶
updated 2021-07-12
- Master -> fetch pull.
- Go to branch with conflict.
- Pull branch.
- Branch -> update from master.
- Open in Sublime or Atom.
- Make changes in file (open the mondo-edit.obo file in a text editor (like Sublime) and search for the conflicts. These are usually preceded by <<<<<. Fix the conflicts, then save).
- In GitHub Desktop, continue merge.
- Push.
- In terminal:
open mondo-edit.obo
(or open in Protege manually). - Save as (nothing should have changed in the diff).
- Check the diff in GitHub online.
See additional documentation about what to do in case of a conflict here: https://github.com/AgileVentures/MetPlus_PETS/wiki/Developing-a-feature-(or-bug,-chore).
Some examples of conflicts Nicole worked on are below: