Skip to main content

atmos git hooks uninstall

Remove local .git/hooks/* shims previously installed by atmos git hooks install. Uninstall only ever removes shims that Atmos generated (identified by shim content) — user-authored hook scripts are never touched.

atmos git hooks uninstall --help
 

Usage​

atmos git hooks uninstall [hook-name...]

Examples​

# Remove all Atmos-generated hook shims
atmos git hooks uninstall

# Remove specific hooks only
atmos git hooks uninstall pre-commit commit-msg

Behavior​

  • With no hook names, removes every Atmos-generated shim found in the hooks directory, including shims for hooks that are no longer configured under git.hooks.
  • A named hook can be removed even after its configuration is deleted. It is an error only if the hook is neither configured under git.hooks nor an existing Atmos-generated shim.
  • Removes only shims generated by Atmos. A hook script that was written or modified by the user is left in place.
  • Removing a shim does not change the hook configuration under git.hooks in atmos.yaml — reinstall at any time with atmos git hooks install.

Arguments​

hook-name... (optional)

One or more Git hook names to uninstall. When omitted, all Atmos-generated shims found in the hooks directory are removed, whether or not the hook is still configured. A named hook must be configured or have an existing Atmos-generated shim.