Este documento fornece um guia sobre o comando --force-with-lease
no Git, uma opção crucial para atualizações seguras em repositórios remotos, especialmente útil em operações de rebase.
O --force-with-lease
é uma alternativa segura ao git push --force
. Ele assegura que suas mudanças só serão aplicadas no repositório remoto se ninguém mais tiver atualizado a branch desde sua última sincronização.