git - How to display a message to committer on push to Github? -


Commuters are not running pre-commit tests! Build a lot break! I finally want to install a hook to apply the original test to pre-test, but a lightweight message for today will be sufficient.

Is it possible to display a message to the sympatizer whenever it's some Geethub repo?

EDIT: I want to make it transparent, without having to install or run any script (which he probably will not do). Since the hooks are not pulling, I think I need to set some on the server side?

If you are using the CLI git client, under the root of your project, See the git / hooks directory, there you will find many scripts with file names ending in "Sample".

Pre-Push.Command and Pre-commit.Sample . These are just bash scripts that will execute on the north side of various events.

If you want to enable them, simply remove "sample." By the name.

For example, you can enable Precommit and replace its contents:

  #! / Bin / sh Echo "run test !!!"  

You can also use the script to run tests conducted by each person.

The IMO thought that you should only apply the policies of your project because it is trivial that you are a team mate (perhaps a combination of both measures is a sweet place) to disable hooks.

See all available hooks and a lot of information about them.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -