I'm new to git and I am looking at what are the possibilities when integrating it into our CI (Jenkins) environment.
Based on several answers I found here at SO (mainly How to configure Git post commit hook), I understand that it a common wish (or practice) to configure git post-commit hooks to trigger your CI builds, instead of simply relying on SCM polling.
A post-commit hook is triggered when the user runs git commit
. Since commiting (in git terminology) means commiting to your local repository, those changes are not yet available in the central repository (i.e., they haven't been pushed).
Assuming you have a central CI server, my question is: what is the use of "triggering your CI build" after commit, if the CI system cannot see those changes yet?