githooks - git hooks push and local commits -


I am writing a git hook for my project team recently. I would like to know whether the developers are committing various commitments locally, without following the standard commit message pattern, they push those commands, will fail there because the pattern is not being followed?

The desired result will be that they will be able to work locally according to their wishes, then they are compelled to follow the pattern of structures when they are the main corporate branch.

Thoughts? Is this the best practice?

This is the trick: are not published (pushed / drawn)

If your project members push into bare repo where to check for a server side hook ( pre-acquire or update ) commit message pattern (which I'm not sure is it Maybe done), that push will fail.
But the committed developer lives on the local repo and he still has to fix it ( git commit --mend if no other committee has already been made).

It would be better:

  • Create a template GIT repos with the right hooks
  • Make sure developers have their repo Let's start with the Timesplext option while referring to the correct template. See of git init .

In this way, they will fail faster than server side (where wrongly done commands can be pushed and unsuccessful)

< P> In other work, a client side hook here would be more suitable.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -