Skip to content
Snippets Groups Projects

Common pre-commit.sh

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Alexander Wellbrock

    A common pre-commit script that uses git stash to prepare a clean environment to execute commit tests before opening the commit message editor.

    Activate locally with ln -s ../../pre-commit.sh .git/hooks/pre-commit

    Edited
    pre-commit.sh 458 B
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment