Created
May 9, 2023 13:54
-
-
Save inverse/4a96f5dd71c655a76a3ef956e5e7b44d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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