Skip to content

Display a minimal maxim by The Minimalists after each git commit.

License

Notifications You must be signed in to change notification settings

randomecho/git-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git Minimal

Display a minimal maxim by The Minimalists after each git commit.

Setup

To use the Python version (created in a Python 3.4 environment) you will need to install some modules:

pip install BeautifulSoup4 requests

To use the Bash shell script version wget needs to be installed. If you don't know if wget exists on the machine check for it with:

which wget

If the path to wget does not show, it's not installed.

Install

Move the script into the hooks directory of the desired repo and re-initialise:

mv post-commit.py /path/to/repo/.git/hooks/post-commit
cd /path/to/repo/
git init

Note: There is no file extension when planted into the hooks directory. It is just "post-commit".

Global install

Set a global store of all the Git hooks like so:

git config --global init.templatedir '/path/to/global/git_templates'
mkdir -p /path/to/global/git_templates/hooks
mv post-commit.py /path/to/global/git_templates/hooks/post-commit

To update existing repos, re-initialise:

git init

The example command line instructions reference the Python script. To use the Bash shell script instead, swap out post-commit.py for post-commit.sh.

License

BSD 3-Clause

Releases

No releases published

Packages

No packages published