Skip to content

Instantly share code, notes, and snippets.

@inverse
Created May 9, 2023 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inverse/4a96f5dd71c655a76a3ef956e5e7b44d to your computer and use it in GitHub Desktop.
Save inverse/4a96f5dd71c655a76a3ef956e5e7b44d to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euf -o pipefail
if ! git rev-parse --is-inside-work-tree &>/dev/null; then
echo "Not in a git repository"
exit 1
fi
TEMPLATE_PATH="$(git rev-parse --show-toplevel)/.git/template"
git config --unset commit.template
echo > "$TEMPLATE_PATH"
echo "👋 Disabled pairing mode."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment