tags:

views:

415

answers:

2

Hi Guys,

I am trying to find a Git Commit Monitor for Windows. Does anyone know whether one exists or ?

Ideally it would essentially monitor the log and notify when a new commit has occurred ?

Thx

+3  A: 

Just use the GIT hook post-commit

githooks(5) Manual Page

jitter
Hi :) Not sure what you mean ?
Tom
Umm did you read the page in the link provided?
jitter
hi yeah i did - but little unsure how to use it ? its command line only or ?
Tom
@jitter, even if he did, you'll have to wade through some jargon to know what it all means. I had to try several times before I could get the pre-commit hook to run a script I wanted... but that could be me offcourse.
Lieven
@Tom, yes, it's command line. I started with TortoiseGit also but find myself using the Git Bash command line more and more. If you want all the bells and whistles, that is the only way. As a sidenote, once you get the gist of it, you don't want to go back for your day to day git activities.
Lieven
that should read "go back to the GUI for you day to day git activities.
Lieven
ah ok thanks. ill try and find more out about :) cheers
Tom
+1  A: 

The best would be to use the post-receive hook.

On your repository on the server, you have to put a shell script named 'post-receive' in the .git/hooks directory. This script will be invoked each time something is pushed and it's passed argument via stdin in the form

There are examples scripts provided with recent version of git. Look in:

/usr/share/doc/git-core/contrib/hooks/post-receive-email

On windows, look at the path of your install to find it ...

246tNt