Skip to content

tchia04/git-pre-commit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

082cfa2 · May 5, 2017

History

19 Commits
Mar 16, 2016
Mar 16, 2016
May 4, 2017
May 5, 2017
May 4, 2017
May 4, 2017
May 4, 2017
May 4, 2017
May 5, 2017

Repository files navigation

This repo contains two client side (pre-commit and pre-push) scripts that prevent you from commiting to the default branch which usually it's the master directly.

It also prevent you from pushing your default branch to the origin repo.

It forces you to get into the good habit of always work on a branch and open a pull request to merge into default branch which allows code reviews to happend.

If the default branch changes, the script will automatically switch to the new default branch without any script changes

This script setups the pre-commit and pre-push hook for both the existing git repo under your home directory and any future new repo you clone

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages