Menu

Tree [69b3be] master /
 History

HTTPS access


File Date Author Commit
 hooks 2020-04-13 ipmanlk ipmanlk [69b3be] root commit
 README.md 2020-04-13 ipmanlk ipmanlk [69b3be] root commit
 install.sh 2020-04-13 ipmanlk ipmanlk [69b3be] root commit
 uninstall.sh 2020-04-13 ipmanlk ipmanlk [69b3be] root commit

Read Me

GitQuote

GitQuote will show you a quote from /r/quotes/ after each commit.

Requirements

  • Python 3

Installation

  • Download this repo as a zip file or using,
 $ git clone https://github.com/ipmanlk/GitQuote
  • Open your terminal and navigate to downloaded repo.
 $ cd GitQuote
  • Install using one of the following methods.

Method 1: Install using scripts

  • Give permissions to install.sh & uninstall.sh scripts.
$ chmod +x install.sh uninstall.sh
  • Run install.sh script.
$ ./install.sh

Method 2: Install manually

  • Copy post-commit file in "hooks" directory to ".git/hooks" directory in your project
  • Then make it executable.
$ cp hooks/post-commit <your_project_path>/.git/hooks

$ chmod +x <your_project_path>/.git/hooks/post-commit

How to use

Just commit as usual. A random quote will show up everytime you make a new commit.

 $ git commit -m "I want to see a random quote."

Uninstallation

  • You can uninstall this by running uninstall.sh script in repo directory.
 $ ./uninstall.sh
  • Or, you can simply delete post-commit file from .git/hooks directory in your project.
rm .git/hooks/post-commit

Notice: GitQuote will erase and create post-commit hook file