GIT and Jenkins
Install Git plugin and GitHub plugin on Jenkins, in my case the jenkins login url is http://localhost:8080
Click on Manage Jenkins -> Manage Plugins -> search for Git plugin and GitHub plugin and install it

Login to GitHub and get the Project and Repository URL. In my case
Project URL: https://github.com/yashwanthsn2020/automation/
Repository URL: https://github.com/yashwanthsn2020/automation.git
Create a new job in jenkins -> jenkins-git-integration -> Freestyle project -> click OK
On the General tab -> choose GitHub project and add the Project URL
Under Source Code Management -> choose Git and add Repository URL

Under Build Triggers section I chose Build Periodically since my jenkins run on localhost.
I.e, http://localhost:8080, we can not add a webhook from GitHub to jenkins for a localhost
If Jenkins is not on localhost, you can choose "GitHub hook trigger for GITScm polling"

Here is the console output from Jenkins

