Pregunta

¿Por qué hay un conflicto cuando presente un cambio en una rama en la Gerrit, pero cuando lo rebase mi cambio en esa rama a nivel local, git puedo hacer un rebase avance rápido y sin ningún conflicto?

El comportamiento de sumisión Gerrit no es como la fusión del GIT. ¿Por qué?

¿Fue útil?

Solución

Gerrit is very conservative with merges/rebasing. If a file has been modified by your commit has also been modified in the branch you are trying to merge with, Gerrit will fail with a conflict even if git is capable of resolving the conflict automatically. This is just to be extra safe.

In newer versions of Gerrit there is a configuration to turn this safety check off, and have Gerrit trust git's automerge results.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top