Skip to content

A Git template that contains a few helpful hooks written in Ruby

License

Notifications You must be signed in to change notification settings

toddmazierski/git_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git_template

A Git template that contains a few helpful hooks written in Ruby.

Installation

  1. Clone the repository:

    cd ~/code
    git clone git@github.com:toddmazierski/git_template.git
  2. Configure Git to use the template globally:

    git config --global init.templatedir "~/code/git_template"
  3. For new repositories, the hooks will be automatically installed:

    git init
  4. For existing repositories, reinitialize the repository:

    rm -rf .git/hooks
    git init

Experimental

To update the hooks for multiple, existing repositories:

ruby script/update_hooks.rb ~/code

TODO

  • Language conditionals

About

A Git template that contains a few helpful hooks written in Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published