darkjinnee / githooks

Git global hooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git Hooks

Git global hooks

Installation

$ git clone https://github.com/darkjinnee/githooks.git
$ git config --global core.hooksPath ~/githooks
$ chmod -R +x ./githooks

Hide changes

Add lines to file .gitconfig

[alias]
    hide   = update-index --skip-worktree
    unhide = update-index --no-skip-worktree
    hidden  = "!git ls-files -v | grep ^[hsS] | cut -c 3-"

About

Git global hooks

License:MIT License


Languages

Language:Shell 100.0%