{"repo":"Autohook/Autohook","free":true,"listed":false,"github":"https://github.com/Autohook/Autohook","clone":"git clone https://github.com/Autohook/Autohook.git","description":"A very, very small Git hook manager with focus on automation","language":"Shell","stars":140,"topics":["git","bash"],"license":"MIT","category":"cli-tools","readme_excerpt":"Autohook Autohook is a very, very small Git hook manager with focus on automation. It consists of one script which acts as the entry point for all the hooks, and which runs scripts based on symlinks in appropriate directories. Installation The autohook.sh script can be installed in either of two ways: 1. It can be committed within the Git repo that contains its own hook scripts. With this method, hook scripts can be committed with the code that they manage, and they match individual branches. 2. It can be copied to a central location with standardized hook scripts. With this method, hooks scripts are centrally managed and shared among all of the developers who install the autohook.sh script in their environments. Copy the autohook.sh script to any suitable location, and make it executable. If you wish it to manage hooks within your Git repository, add it and commit it. (Whether or not it's committed, it cannot be located within the .git directory tree located in the root of your repository!) In the directory containing the autohook.sh script, create a directory named \"hooks\". Within the \"hooks\" directory, create directories for each of the Git hooks that are of interest. (Run the git help hooks command to identify the names of the Git hooks.) These directories will later contain scripts to run in response to the corresponding Git hooks. For example, within the \"hooks\" directory, create a child directory named \"pre-commit\" that will contain scripts that will run before a git c","default_branch":null,"files":null,"tree":[],"storefront":"/r/Autohook","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Autohook/Autohook/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}