Push with: git push --force-with-leaseInclude in the function Branch Push the option to force the push only if the local repository is updated. This is done with the command: git push --force-with-lease