On Monday, October 14, 2013 2:50:29 PM UTC+2, Ling wrote:

> Hello,
> We are going to integrate the Git with VersionOne and also trying to 
> create some hooks that prevent when developers trying to commit/push the 
> changes into the remote repositories, for example: when developer trying to 
> commit/push the new changes from the local repository into the remote 
> repository, it require to enter the VersionOne defect#, and it will check 
> if it match this V1 defect#, or this V1 defect# is in correct state... then 
> it can be push into the remote repo, otherwise, it fire the hooks and 
> reject this commit/push.
> So we are trying to get some ideas on how we can get this hooks create? 

Start by reading about Git hooks here: 

You can start off with the example commit-msg hook in Git itself which 
checks that the commit message has the text "Signed-off-by:"

git init foo
cd foo
cat .git/hooks/commit-msg.sample

Activate the hook by removing the .sample suffix, and make the file 

For your VersionOne needs, you can google what other people have done to 
integrate Git with Jira for example. 

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to