diff --git a/basics.html b/basics.html index 0ba996fd42120e6c5766778294da979ff7ef83c4..7e9eb82f600e7486d45aa4577d743715cebf62d5 100644 --- a/basics.html +++ b/basics.html @@ -754,13 +754,32 @@ </section> <section id="collab-conflicts" data-markdown> - ## conflicts + ## resolving conflicts + ### maintainer + + ```bash + git remote add alice https://... + git fetch alice + git checkout master + git merge alice/topic/feature + # fix conflicts + git push + ``` + + ### contributor + + ```bash + git fetch upstream + git checkout topic/feature + git merge origin/master + # fix conflicts + git push + ``` notes: - hopefully conflicting changes - MR status should show that (can not be merged without conflicts) - - TODO explain merge or rebase - - TODO show both variants from maintainer and contributor + - maintainer decides if trivial or delegate to contributor </section> </section>