Skip to content
masterclass Buddy

Git · Option

post-merge hook

The post-merge hook runs after a successful Git merge. Use it to restore untracked working-tree data or check external files needed by the project.

Last updated

Syntax

.git/hooks/post-merge

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • post-checkout hook
  • pre-merge-commit hook
  • post-rewrite hook
  • post-checkout

Source: Git - githooks Documentation. Checked 2026-11-03.