Dangerous
git push --force origin maincross-platform · bash · Intermediate
Overwrites the shared main branch with your local history, discarding any commits on the remote that you do not have. It reads like an ordinary push, but the --force flag turns it into a destructive operation against work other people depend on.
Signals to notice
- Force push to a shared branch
- Discards remote commits
- No --force-with-lease safety check
Think you can spot these under time pressure?
Start Training