// Aula 8 - Criando um template ".git" $ mkdir ~/.git_template $ mkdir ~/.git_template/{hooks,info} $ cd ~/.git_template/hooks $ cp /usr/share/git-core/templates/hooks/* . # vim commit-msg #!/bin/sh MSG_FILE="$1" echo "\nAqui é um template commit-msg" >> $MSG_FILE # chmod +x ~/.git_template/hooks/commit-msg # echo "*.txt" > ~/.git_template/info/exclude # git config --global init.templatedir ~/.git_template $ git init template-example $ cd template-example $ echo "este é o arquivo README" > README.txt $ git status $ echo "algo para o commit" > somefile $ git add somefile $ git commit -m "Comentar Algo" $ git log -1