How to configure our local jenkins with git ,so that we can trigger build automatically

A post was merged into an existing topic: Configuration of local jenkins with git
Merge reason: very similar questions.