Skip to content

travisvroman/no-checkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

no-checkin

A command-line git utility configuration that blocks commits of temporary code.

Purpose

This searches all staged code for the string nocheckin and, if found, fails the commit process with an error, listing out each occurrence. This works by replacing your repo's .git/hooks/pre-commit script with a symbolic link to the one provided in this repo.

This should be cloned into your home directory as-is (i.e. ~/no-checkin/.

This also recurses submodules and applies the rules there, too.

Usage

To use, run setup-no-checkin.sh from the parent git directory (not submodules) of the repo you want this functionality for. NOTE: If this repo is cloned to a different directory, the path in setup-no-checkin.sh will need to be modified.

For example:

  • cd ~
  • git clone https://github.com/travisvroman/no-checkin.git
  • cd ~/path/to/repository/
  • ~/no-checkin/setup-nocheckin.sh

About

A command-line git utility configuration that blocks commits of temporary code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages