Set shallow clone depth, so that git will only download recent history of the project, saving time and disk space when you just want to access the latest commits of a repository. Note that this has an effect on the changesets listed by Jenkins. Setting this to 1 causes all files in the repository to be listed in every change.