Install it in directory gitils in your home directory.
Run to install the alias
aliases.sh
Configure it globally
git config --global init.templatedir ~/gitils/template
and then for your existing projects, just reinit each of them with git init
.
Or configure it project by project:
git init --template ~/gitils/template
The hook automatically prepen the commit message with the name of the feature
branch. A feature branch is identified according the the format feature/<name>
.
Dashes and underscores are replaced by space.
The project bash-git-prompt will give you a great informative prompt in Bash (current repository and branch, number of files staged or changed, etc.).