Skip to content
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
@salcode

Description

@salcode

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions