This repository was archived by the owner on Nov 25, 2022. It is now read-only.
This repository was archived by the owner on Nov 25, 2022. It is now read-only.
Discourage (prevent?) use of push --force #94
Open
Description
While we have added aliases to make it easier to use push --force-with-lease
instead of push --force
(see both #10 and #71), I would like go so far as to prevent push --force
.
I've not determined a way to do this with a git alias (since I don't see a way to map a current command, i.e. git push
, to something else).
I think the best route may be to create a bash script that runs in place of git
. The script would listen for push --force
and intervene in that situation, otherwise it would pass along all commands to git
.
Metadata
Metadata
Assignees
Labels
No labels