Skip to content

Pre-commit hooks can cause many of the commands to fail #135

@mhspektr

Description

@mhspektr

It would be nice if the commands that push supported a --no-verify flag. I've had to implement a local function like this to get around the pre-commit hooks that sometimes fail during push after a rebase.

# git stack --push without running hooks.
gs-push-quiet() {
    git config core.hooksPath /dev/null
    gh stack push
    git config --unset core.hooksPath
}

Not all my colleagues use pre-commit, so sometimes a random change somewhere in the mono repo will block a push without --no-verify, even though all my commits are clean.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions