You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(toca hacerlo por cada proyecto clonado, ergo por cada directorio .git)
crear git hook
touch .git/hooks/prepare-commit-msg
dar permisos de ejecución
chmod +x .git/hooks/prepare-commit-msg
editar archivo de hook
vim .git/hooks/prepare-commit-msg
escribir y guardar en el archivo
#!/bin/sh
BRANCH_NAME=$(git symbolic-ref --short HEAD)if [ -n"$BRANCH_NAME" ];then# Remove the final '-I' from the branch name
BRANCH_NAME=$(echo "$BRANCH_NAME"| sed 's/-I$//')# Prepend the branch name to the commit messageecho"$BRANCH_NAME$(cat "$1")">"$1"fi
The text was updated successfully, but these errors were encountered:
(toca hacerlo por cada proyecto clonado, ergo por cada directorio .git)
The text was updated successfully, but these errors were encountered: