DEV Community

Discussion on: Top 10 git commands everyone should know

Collapse
 
greeder59 profile image
Gordon Reeder

Git push --force. Not to be used trivially. Makes git push act like the old FTP Dump all the Files remote update. Useful for pushing updates to web servers. Becauese someone went around the workflow and fixed a typo directly on the server. Causing the git push command to have a hissy fit when you try to publish an update.