Skip to content

AMPivovarov/git-pre-push-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

git-pre-push-hook

git pre-push client-side hook, that prevents occasional errors with "--force" option.

Sample config:

prevents deletion/corruption of tags and branches, except the "amp/feature" ones

[hooks]
  pushforceprotectedremotes = "origin"
  pushforceprotectedbranches = "(refs/tags/.*|refs/heads/(?!amp/.*).*)"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages