Git Utils (Alias, Hooks, etc.)
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
template/hooks
README.md
aliases.sh

README.md

Gitils

Install it in directory gitils in your home directory.

Aliases

Run to install the alias

aliases.sh

Hooks

Setup

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

Prepare Commit Message

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.

Externals

Prompt

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.).