What does git push –force-with-lease do?

Git Medium

Git — Medium

What does git push –force-with-lease do?

Key points

  • Verifies remote branch state before pushing
  • Prevents overwriting recent changes
  • Safer alternative to --force
  • Does not create backups or leases

Ready to go further?

Related questions