git merge
Aby połączyć historie rozwoju w dwóch gałęziach, przejdź do „ Tools ” > „ Git ” > „ Local Repository ” i wybierz opcję „ Branches ”.
W widoku Git Branches kliknij prawym przyciskiem myszy zdalną gałąź, a następnie wybierz opcję scalania z menu kontekstowego. Jeśli do commit’u, który scalasz, można dotrzeć, podążając za historią pierwszego commit’u, nie ma rozbieżnych zmian do scalenia. Aby umożliwić Gitowi przesunięcie wskaźnika gałęzi do przodu, wybierz opcję „ Merge <remote branch> into <local branch> (Fast-Forward) ”. Jeśli nie chcesz przesuwać gałęzi do przodu, wybierz opcję „ Merge <remote branch> into <local branch> (No Fast-Forward) ”.
Konfiguracja narzędzi do scalania
Obsługiwane są wyłącznie graficzne narzędzia do scalania. Możesz skonfigurować narzędzie do scalania, którego chcesz używać w wierszu poleceń. Na przykład, aby użyć narzędzia do scalania KDiff3, wpisz następujące polecenie:
git config --global merge.tool kdiff3
Zobacz także : Jak: Korzystać z Gita oraz Korzystanie z Gita.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.