Introduction
Jenkins uses the Git plugin to connect to Git repositories. This plugin helps Jenkins download your code so it can build and test it automatically.
When you want Jenkins to get the latest code from a GitHub repository before building.
When you need Jenkins to track changes in a Git repository and trigger builds automatically.
When you want to specify which branch Jenkins should build from.
When you want Jenkins to use credentials to access private Git repositories.
When you want Jenkins to clone a repository with specific options like shallow clone.