I want to enable sonar with git but is it neccesary that first pull the project from git repository using hudson or something else and then sonar will analyse the code periodically on hudson .am I right means my steps : 

1.Pull project from git using hudson.

2.Sonar on hudson will analyse the code and send the updates.?

or directly we can use git+sonar how it works ,can anybody guide me to get it work.