Skip to content

veggie-garden/pre-commit-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

pre-commit-filter

A hook script that checks certain words is in the code during the commit.
커밋 도중 특정 단어가 코드에 있는지 확인하는 hook script입니다.

How to use

  1. Copy the pre-commit file into the your-project-path/.git/hooks/ folder.
    pre-commit파일을 프로젝트-경로/.git/hooks/ 폴더에 복사하세요.

  2. Change mode

chmod +x .git/hooks/pre-commit
  1. run
    git add your files and git commit. Commit will not be done if haystacks are found in the code.
    원하는 파일을 git add한 뒤에 git commit을 하세요. 만약 설정한 단어가 코드에서 발견되면 커밋이 되지 않습니다.

Thanks to

Name github
minjungk github
jinam github

About

A hook script that checks certain words is in the code during commit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages