Awesome Lists

awesome-git-hooks

by CompSciLauren

awesome listShellpushed over 2 years ago

anchor A curated list of awesome git hooks

AI summary

Git automation scripts

A curated collection of git hooks scripts to automate tasks during git workflows.

stars
993
forks
50
watching
15
awesome lists
3
entries
16
View on GitHub

Embed the badge

Show how many awesome lists link to your project. The count updates automatically.

Awesome Lists badge
Markdown
[![Awesome Lists Badge](https://awesome.facts.dev/shield/CompSciLauren/awesome-git-hooks/links.svg)](https://awesome.facts.dev/awesome/CompSciLauren/awesome-git-hooks)
HTML
<a href="https://awesome.facts.dev/awesome/CompSciLauren/awesome-git-hooks"><img src="https://awesome.facts.dev/shield/CompSciLauren/awesome-git-hooks/links.svg" alt="Awesome Lists Badge" /></a>
Image URL
https://awesome.facts.dev/shield/CompSciLauren/awesome-git-hooks/links.svg

What's in the list

16 links in 10 sections, with live GitHub stats.activeno commit in 2y

Git Hook Scripts / commit-msg

  • enforce-insert-issue-number

    Make sure user did not delete the ISSUE-[#] string that was generated by prepare-commit-msg/insert-issue-number.hook

Git Hook Scripts / post-checkout

  • delete-pyc-files

    Delete all .pyc files every time a new branch is checked out

  • new-branch-alert

    Display a message when a new branch is checked out for the first time

Git Hook Scripts / post-update

  • update-server-info

    Prepare a packed repository for use over dumb transports (e.g. http)

Git Hook Scripts / pre-commit

  • dotenvx

    Prevent committing your file(s) to code

  • format-code

    Run command to format code and re-add any files modified after formatting

  • search-term

    Fail commit if a specific term is found in the code

  • spell-check-md-files

    Check files with .md extension for spelling errors

  • verify-name-and-email

    Fail commit if user.name or user.email is incorrect

Git Hook Scripts / prepare-commit-msg

Git Hook Scripts / pre-push

  • prevent-bad-push

    Prevent push of commits where the log message starts with "WIP" (work in progress)

Git Hook Scripts / pre-rebase

  • prevent-rebase

    Prevent topic branches that are already merged to 'next' branch from getting rebased, because allowing it would result in rebasing already published history

Git Hook Scripts / query-watchman

  • fsmonitor-watchman

    Output to stdout all files that have been modified since a given time

Git Hook Scripts / update

  • update

    Block unannotated tags from entering

Quick Start

Add a GitHub project

Missing a project or an awesome list? Paste its GitHub URL and we fetch it right away.