Skip to content

darkjinnee/mac-githooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mac Git Hooks

Git global hooks

Installation

$ git clone https://github.com/darkjinnee/mac-githooks.git
$ git config --global core.hooksPath ~/mac-githooks
$ chmod -R +x ./mac-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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages