⚖ Compare news

Put up to three stories side by side. Pick IDs from any article URL: /compare?id=123&id=456

[Перевод] Что будет, если слить две ветки в Git? Проверяем заранее, не выполняя merge

habrahabr.ru ·Russian Federation · world
Words
55
Chars
367
AI summary
Yes
Full story

The article explains that Git merge conflicts often appear at the worst possible moment, when changes are already ready to integrate. It looks at whether a merge result can be checked in advance without touching the working directory or the current branch. It describes how git merge-tree can show potential conflicts before an actual merge and what Git itself can do for this.

Конфликты при слиянии веток в Git часто обнаруживаются в самый неподходящий момент — когда изменения уже готовы к интеграции. Но что, если результат merge можно проверить заранее, не затрагивая рабочую директорию и текущую ветку? Разбираемся, как с помощью git merge-tree увидеть потенциальные конфликты ещё до слияния и что для этого умеет сам Git. Разобрать команды

Open article