Skip to content

My global git hooks -- most notably, they play audio files when you pull, commit, and push.

Notifications You must be signed in to change notification settings

bbenesh/git-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

git-hooks

My global git hooks -- most notably, they play audio files when you pull, commit, and push.

  1. git clone git@github.com:bbenesh/git-hooks.git .git OR download to your computer, save in your home directory, and make sure to name the top-level directory .git. If you don't want this to live in your ~/.git, you need to go into all the hooks that don't end in .sample and update the paths in them.

  2. documentation on how to install these globally...

I put these directly in my home directory and configure them as global so that they run in every project on my computer. To make these work globally, run: git config --global core.hooksPath path/to/wherever/you/cloned/this/directory

These will now run in any new git repo you create on your local computer. In order to get them to run on any projects that already exist on your local, cd into that project and run git init to re-initialize the project. This won't harm anything, it will just refresh your git so that it is aware of the new global config you just created.

  1. with info on how to install them on just a local project.

You could also just take the /hooks and /sounds directories and place them in the .git directory of one specific project, and then they would run just for that project. Make sure you run git init in your local project after you add these new hooks.

  1. Resources: a list of all the urls I hit up when piecing together how to accomplish this

About

My global git hooks -- most notably, they play audio files when you pull, commit, and push.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages