Skip to content

pre-push should run pre-commit checks on each commit to be pushed #420

@ljharb

Description

@ljharb

I'd like to configure a bunch of pre-commit checks, but disable the pre-commit hook.

Then, on pre-push, I'd like to run the precommit checks on each commit I'm about to push, one at a time.

My philosophy here is that committing should be fast, like ⌘-S - I shouldn't have to comply with anything; linting, tests, etc. However, prior to pushing, I'll rebase everything down so that each commit represents a single, atomic, conceptual change - and that's both what I want to run checks on, and also the time where I want to check it - and also the time that I'm comfortable waiting a bit longer, since pushing can take awhile anyways.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions