Force push with care
Pushing git updates with
--force is something you usually should avoid. There are reasons why some teams forbid this entirely, I personally like to use it for edge-cases where you want to squash your feature branch before merging. Tute Costa shares a way how to prevent you from overwriting remote changes when force-pushing by using the
--force-with-lease option instead.