Introduction
When Jenkins needs to get code from a Git repository, it must prove it has permission. Credentials are like keys that Jenkins uses to unlock the code safely without asking you every time.
When Jenkins runs a job that pulls code from a private Git repository.
When you want to automate builds without typing your Git username and password each time.
When you need to securely store Git access tokens or SSH keys for Jenkins pipelines.
When multiple Jenkins jobs use the same Git credentials and you want to manage them centrally.
When you want to avoid exposing your Git passwords in pipeline scripts.