diff --git a/gitcommit b/gitcommit new file mode 100644 index 0000000..0c27437 --- /dev/null +++ b/gitcommit @@ -0,0 +1,12 @@ +# If applied, this commit will... + +# Why is this change needed? +Prior to this change, + +# How does it address the issue? +This change + +# Provide links to any relevant tickets, articles or other resources + +# Template sourced from +# https://codeinthehole.com/tips/a-useful-template-for-commit-messages/ diff --git a/gitconfig b/gitconfig index 76d2508..cfbd9f1 100644 --- a/gitconfig +++ b/gitconfig @@ -37,6 +37,8 @@ co = checkout ci = commit st = status --short --branch +[commit] + template = ~/.git-commit-template [url "git://github.com/"] insteadOf = gh: [url "git@github.com:"] diff --git a/install b/install index 06d41ab..9c9d9d2 100755 --- a/install +++ b/install @@ -132,6 +132,12 @@ echo Installing dotfiles from $PRINT_PATH ####################################################################### # Install git configuration ####################################################################### +if [[ ! -e ~/.git-commit-template ]] +then + echo "Installing Git commit template" + cp -v gitcommit ~/.git-commit-template +fi + if [[ ! -e ~/.gitconfig ]] then echo "Installing gitconfig" @@ -142,6 +148,9 @@ then read GIT_EMAIL git config --global user.name "$GIT_USER" git config --global user.email "$GIT_EMAIL" +else + echo "Applying gitconfig" + ./scripts/applygitconfig gitconfig fi # Install git prompt functions @@ -177,7 +186,7 @@ if [[ -d .git ]] then git pull else - git clone git@github.com:nirenjan/vimfiles.git . + git clone my:vimfiles.git . fi git submodule init