Git Cookbook
May 7, 2026 · View on GitHub
Installs Git from package, source, or the Git for Windows installer and manages Git configuration.
Scope
This cookbook is concerned with the Git SCM utility. It does not address ecosystem tooling or related projects.
Maintainers
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.
Requirements
Chef
- Chef 15.3+
Cookbooks
- ark (for
git_clientsource install)
Usage
Use the git_client resource directly from your cookbook:
git_client 'default'
For source installs:
git_client 'source' do
source_version '2.54.0'
action :install_from_source
end
Resources Overview
git_client: Manages a Git client installation on a machine. Source install action is available on Linux.git_config: Sets up Git configuration on a node.
Migration
This cookbook is now a custom-resource-only cookbook. See migration.md for the breaking changes from recipe and node attribute usage to resource properties.
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.