How to configure git to avoid accidental git push December 1, 2023 by Tarik Looks like git config remote.origin.receivepack /bin/false Makes push to remote origin fail.