git webhook. settings - webhooks - give jenkinsserver Ip with port like "https://ip address of jenkins server:8080/github/webhook/"
save and JENKINS AUTOMATICALLY BUILDS ONLY IF GIT REMOTE REPOSITIORY UPDATED.............................................................
..........................