Hacker News new | ask | show | jobs
by zimbu668 720 days ago
You should do this instead:

git push —-force-with-lease repo branch

1 comments

This. --force-with-lease is what --force should have been in the first place. Hopefully they will eventually make it so, and rename --force to something less accessible.